From eeb1f02d3b8e8543384a425b2974c32f1e78f14b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Mej=C3=ADa?= Date: Mon, 23 Oct 2023 08:36:25 +0200 Subject: [PATCH] AVRO-3852: Upgrade CI tests to Java 21 GA release (#2525) * AVRO-3852: Upgrade CI tests to Java 21 GA release * AVRO-3852: Fix maven archetype generation for multiple Java versions * AVRO-3852: Test with JDK 22 EA distribution * AVRO-3852: Fix maven archetype integration test --- .github/workflows/test-lang-java.yml | 6 ++++-- .../archetypes/avro-service-archetype/src/main/pom/pom.xml | 6 ++---- .../projects/basic/archetype.properties | 0 .../test/{integration => resources}/projects/basic/goal.txt | 0 4 files changed, 6 insertions(+), 6 deletions(-) rename lang/java/archetypes/avro-service-archetype/src/test/{integration => resources}/projects/basic/archetype.properties (100%) rename lang/java/archetypes/avro-service-archetype/src/test/{integration => resources}/projects/basic/goal.txt (100%) diff --git a/.github/workflows/test-lang-java.yml b/.github/workflows/test-lang-java.yml index cb493ac00cd..7aaf1b9ce77 100644 --- a/.github/workflows/test-lang-java.yml +++ b/.github/workflows/test-lang-java.yml @@ -43,7 +43,8 @@ jobs: - '8' - '11' - '17' - - '21-ea' + - '21' + - '22-ea' steps: - uses: actions/checkout@v4 @@ -76,7 +77,8 @@ jobs: - '8' - '11' - '17' - - '21-ea' + - '21' + - '22-ea' steps: - uses: actions/checkout@v4 diff --git a/lang/java/archetypes/avro-service-archetype/src/main/pom/pom.xml b/lang/java/archetypes/avro-service-archetype/src/main/pom/pom.xml index 399bbea940b..2685648e776 100644 --- a/lang/java/archetypes/avro-service-archetype/src/main/pom/pom.xml +++ b/lang/java/archetypes/avro-service-archetype/src/main/pom/pom.xml @@ -37,8 +37,6 @@ ${maven.compiler.target} ${project.build.sourceEncoding} ${project.version} - ${maven.compiler.source} - ${maven.compiler.target} ${jackson-bom.version} ${junit5.version} 1.2.3 @@ -143,8 +141,8 @@ org.apache.maven.plugins maven-compiler-plugin - \${maven.compiler.source} - \${maven.compiler.target} + \${maven.compiler.source} + \${maven.compiler.target} diff --git a/lang/java/archetypes/avro-service-archetype/src/test/integration/projects/basic/archetype.properties b/lang/java/archetypes/avro-service-archetype/src/test/resources/projects/basic/archetype.properties similarity index 100% rename from lang/java/archetypes/avro-service-archetype/src/test/integration/projects/basic/archetype.properties rename to lang/java/archetypes/avro-service-archetype/src/test/resources/projects/basic/archetype.properties diff --git a/lang/java/archetypes/avro-service-archetype/src/test/integration/projects/basic/goal.txt b/lang/java/archetypes/avro-service-archetype/src/test/resources/projects/basic/goal.txt similarity index 100% rename from lang/java/archetypes/avro-service-archetype/src/test/integration/projects/basic/goal.txt rename to lang/java/archetypes/avro-service-archetype/src/test/resources/projects/basic/goal.txt