Skip to content

Commit

Permalink
Update integration tests to support Java 17+, build to support 23 (#246)
Browse files Browse the repository at this point in the history
Also added new CI permutations to verify commits on Java 17 and 23.

Fixes #159
Fixes #129
  • Loading branch information
niloc132 authored Nov 27, 2023
1 parent 1e27b91 commit 3a4b1ff
Show file tree
Hide file tree
Showing 9 changed files with 49 additions and 11 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,15 @@ jobs:
matrix:
mvn: ['3.9.5', '3.8.8', '3.6.3', '3.5.4', '3.3.9', '3.2.5']
java: ['11']
# include: # Confirm that old java works in the oldest maven, and that newest maven supports 8-current
# #TODO j2clmavenplugin#159 - re-enable this when the integration tests run cleanly in Java 17+
# - mvn: '3.8.8'
# java: '17'
# - mvn: '3.8.8'
# java: '21'
# - mvn: '3.9.5'
# java: '17'
# - mvn: '3.9.5'
# java: '21'
include: # Confirm that old java works in the oldest maven, and that newest maven supports 11-current
- mvn: '3.8.8'
java: '17'
- mvn: '3.8.8'
java: '21'
- mvn: '3.9.5'
java: '17'
- mvn: '3.9.5'
java: '21'
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.3.2</version>
</plugin>
</plugins>
</pluginManagement>
</build>
Expand Down
5 changes: 5 additions & 0 deletions j2cl-maven-plugin/src/it/dependency-replacements/app/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.3.2</version>
</plugin>
</plugins>
</pluginManagement>
</build>
Expand Down
9 changes: 9 additions & 0 deletions j2cl-maven-plugin/src/it/hello-world-reactor/app/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,14 @@
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.3.2</version>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>
5 changes: 5 additions & 0 deletions j2cl-maven-plugin/src/it/hello-world-single/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.3.2</version>
</plugin>
</plugins>
</pluginManagement>
</build>
Expand Down
5 changes: 5 additions & 0 deletions j2cl-maven-plugin/src/it/hello-world-web-components/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.3.2</version>
</plugin>
</plugins>
</pluginManagement>
</build>
Expand Down
5 changes: 5 additions & 0 deletions j2cl-maven-plugin/src/it/top-level-source-file/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.3.2</version>
</plugin>
</plugins>
</pluginManagement>
</build>
Expand Down
5 changes: 5 additions & 0 deletions j2cl-maven-plugin/src/it/transitive-dependencies/app/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.3.2</version>
</plugin>
</plugins>
</pluginManagement>
</build>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
<!-- Plugin dependencies versions-->
<maven.version>3.3.9</maven.version>
<maven.resolver.version>1.3.1</maven.resolver.version>
<maven.enforcer.plugin.version>1.4.1</maven.enforcer.plugin.version>
<maven.enforcer.plugin.version>3.4.1</maven.enforcer.plugin.version>
<maven.source.plugin.version>3.0.1</maven.source.plugin.version>
<maven.javadoc.plugin.version>3.0.1</maven.javadoc.plugin.version>
<maven.gpg.plugin.version>1.6</maven.gpg.plugin.version>
Expand Down

0 comments on commit 3a4b1ff

Please sign in to comment.