diff --git a/.github/workflows/ci-java-17-and-21.yml b/.github/workflows/ci-java-17-and-21.yml new file mode 100644 index 00000000000..548858ce0b8 --- /dev/null +++ b/.github/workflows/ci-java-17-and-21.yml @@ -0,0 +1,34 @@ +name: Java CI + +on: + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + java: [ 17, 21 ] + name: Java ${{ matrix.java }} build + steps: + - uses: actions/checkout@v4 + - name: Prepare multi-module build + run: | + git submodule update --init --recursive + - name: Set up Java + uses: actions/setup-java@v3 + with: + distribution: liberica + java-version: ${{ matrix.java }} + - name: Cache Maven packages + uses: actions/cache@v3 + with: + path: ~/.m2 + key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} + restore-keys: ${{ runner.os }}-m2 + - name: Build with Maven + run: ./mvnw clean package -Dgpg.skip + - if: ${{ matrix.java != 8 }} + name: Check style with Spotless + run: ./mvnw spotless:check + diff --git a/.github/workflows/maven.yml b/.github/workflows/ci-java-8-and-11.yml similarity index 100% rename from .github/workflows/maven.yml rename to .github/workflows/ci-java-8-and-11.yml diff --git a/.gitignore b/.gitignore index 176ae6fc30a..2450d49c513 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .idea/ +.vscode/ target/ bin/ .project @@ -6,4 +7,4 @@ bin/ .settings/ .factorypath .gradle -.history \ No newline at end of file +.history/ \ No newline at end of file diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml index 2cd4bcce9ce..f4ec93d14cd 100644 --- a/.idea/codeStyles/Project.xml +++ b/.idea/codeStyles/Project.xml @@ -7,9 +7,9 @@