From d3d72c1b98b79a8f7412becf0a479efa99d6dc9b Mon Sep 17 00:00:00 2001 From: Dean Wette Date: Wed, 11 Oct 2023 13:55:37 -0500 Subject: [PATCH 1/2] Add 21 to GitHub CI actions --- .github/workflows/graalvm-latest.yml | 8 +++++--- .github/workflows/gradle.yml | 4 ++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/graalvm-latest.yml b/.github/workflows/graalvm-latest.yml index bfbfff34..d150aa60 100644 --- a/.github/workflows/graalvm-latest.yml +++ b/.github/workflows/graalvm-latest.yml @@ -34,7 +34,9 @@ jobs: runs-on: ubuntu-latest strategy: max-parallel: 6 - matrix: ${{ fromJson(needs.build_matrix.outputs.matrix) }} + matrix: + java: ['17', '21'] + native_test_task: ${{ fromJson(needs.build_matrix.outputs.matrix).native_test_task }} env: GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }} GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USERNAME }} @@ -46,7 +48,7 @@ jobs: id: pre-build with: distribution: 'graalvm' - java: '17' + java: ${{ matrix.java }} - name: Build Steps uses: micronaut-projects/github-actions/graalvm/build@master id: build @@ -60,4 +62,4 @@ jobs: uses: micronaut-projects/github-actions/graalvm/post-build@master id: post-build with: - java: '17' + java: ${{ matrix.java }} diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index f6018245..7c0d4941 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - java: ['17'] + java: ['17', '21'] env: GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }} GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USERNAME }} @@ -64,7 +64,7 @@ jobs: ./gradlew check --no-daemon --continue - name: "🔎 Run static analysis" - if: env.SONAR_TOKEN != '' + if: env.SONAR_TOKEN != '' && matrix.java == '17' run: | ./gradlew sonar From 60a867eee75b4b2f17cb9dd47223d8abd62d92ba Mon Sep 17 00:00:00 2001 From: Dean Wette Date: Wed, 11 Oct 2023 13:56:02 -0500 Subject: [PATCH 2/2] only need micronaut-logging version --- gradle/libs.versions.toml | 1 - settings.gradle | 1 - 2 files changed, 2 deletions(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index b9cec9a8..41aee762 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -23,7 +23,6 @@ micronaut-gradle-plugin = "4.1.1" # Core micronaut-core = { module = 'io.micronaut:micronaut-core-bom', version.ref = 'micronaut' } -micronaut-logging = { module = "io.micronaut.logging:micronaut-logging-bom", version.ref = "micronaut-logging" } boms-reactor = { module = "io.projectreactor:reactor-bom", version.ref = "managed-reactor-bom" } micronaut-tracing = { module = "io.micronaut.tracing:micronaut-tracing-bom", version.ref = "micronaut-tracing" } diff --git a/settings.gradle b/settings.gradle index b1a1c170..e6149865 100644 --- a/settings.gradle +++ b/settings.gradle @@ -24,7 +24,6 @@ micronautBuild { useStandardizedProjectNames = true importMicronautCatalog() importMicronautCatalog("micronaut-tracing") - importMicronautCatalog("micronaut-logging") importMicronautCatalog("micronaut-serde") importMicronautCatalog("micronaut-validation") importMicronautCatalog("micronaut-test")