Skip to content

Commit

Permalink
Change source/target to Java 17
Browse files Browse the repository at this point in the history
  • Loading branch information
casid committed May 23, 2023
1 parent 13fa0c6 commit 1de0902
Show file tree
Hide file tree
Showing 8 changed files with 87 additions and 31 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
fail-fast: false
matrix:
java_version: [1.8, 11, 17]
java_version: [17]
os: [windows-2019, macOS-latest, ubuntu-latest]

steps:
Expand All @@ -22,13 +22,7 @@ jobs:
- name: Make Maven Wrapper executable
if: contains(matrix.os, 'win') == false
run: chmod +x ./mvnw
- name: Build with Maven (1.8, 11)
if: matrix.java_version == '1.8' || matrix.java_version == '11'
run: ./mvnw install -pl !jte-spring-boot-starter-3 --file pom.xml --batch-mode
env:
MAVEN_OPTS: -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
- name: Build with Maven (17)
if: matrix.java_version == '17'
- name: Build with Maven
run: ./mvnw install --file pom.xml --batch-mode
env:
MAVEN_OPTS: -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
Expand All @@ -48,7 +42,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 11
java-version: 17
- name: Make Maven Wrapper executable
if: contains(matrix.os, 'win') == false
run: chmod +x ./mvnw
Expand Down
13 changes: 8 additions & 5 deletions jte-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<properties>
<maven.deploy.skip>false</maven.deploy.skip>
<skipNexusStagingDeployMojo>false</skipNexusStagingDeployMojo>
<maven.plugin.version>3.9.0</maven.plugin.version>
</properties>

<dependencies>
Expand All @@ -35,17 +36,19 @@
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>2.2.1</version>
<version>${maven.plugin.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-project</artifactId>
<version>2.2.1</version>
<artifactId>maven-core</artifactId>
<version>${maven.plugin.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-annotations</artifactId>
<version>3.2</version>
<version>3.8.2</version>
<scope>provided</scope>
</dependency>
</dependencies>
Expand All @@ -55,7 +58,7 @@
<!-- Maven plugin generation -->
<plugin>
<artifactId>maven-plugin-plugin</artifactId>
<version>3.6.0</version>
<version>${maven.plugin.version}</version>
<executions>
<execution>
<id>mojo-descriptor</id>
Expand Down
20 changes: 15 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<java.version>17</java.version>
<junit.jupiter.version>5.9.2</junit.jupiter.version>
<jacoco.version>0.8.5</jacoco.version>
<argLine>-Dfile.encoding=UTF-8</argLine>
Expand Down Expand Up @@ -77,7 +76,17 @@

<build>
<plugins>
<!-- Test -->

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
Expand All @@ -94,10 +103,11 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.2.0</version>
<version>3.5.0</version>
<configuration>
<source>8</source>
<source>${java.version}</source>
<detectJavaApiLink>false</detectJavaApiLink>
<doclint>all,-missing</doclint>
</configuration>
<executions>
<execution>
Expand Down
16 changes: 14 additions & 2 deletions test/jte-benchmark/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<java.version>17</java.version>
<maven.deploy.skip>true</maven.deploy.skip>
<skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
<jmh.version>1.26</jmh.version>
Expand All @@ -37,5 +36,18 @@
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
</configuration>
</plugin>
</plugins>
</build>

</project>
14 changes: 12 additions & 2 deletions test/jte-hotreload-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<java.version>17</java.version>
<junit.jupiter.version>5.9.0</junit.jupiter.version>
<maven.deploy.skip>true</maven.deploy.skip>
<skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
Expand Down Expand Up @@ -67,6 +66,17 @@

<build>
<plugins>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
</configuration>
</plugin>

<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.2</version>
Expand Down
13 changes: 11 additions & 2 deletions test/jte-runtime-cp-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<java.version>17</java.version>
<junit.jupiter.version>5.9.0</junit.jupiter.version>
<maven.deploy.skip>true</maven.deploy.skip>
<skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
Expand Down Expand Up @@ -67,6 +66,16 @@

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
</configuration>
</plugin>

<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.2</version>
Expand Down
17 changes: 13 additions & 4 deletions test/jte-runtime-test-kotlin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<junit.jupiter.version>5.9.0</junit.jupiter.version>
<java.version>17</java.version>
<junit.jupiter.version>5.9.2</junit.jupiter.version>
<maven.deploy.skip>true</maven.deploy.skip>
<skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
<jacoco.version>0.8.5</jacoco.version>
Expand Down Expand Up @@ -40,7 +39,7 @@
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<version>3.23.1</version>
<version>3.24.2</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down Expand Up @@ -74,6 +73,16 @@

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
</configuration>
</plugin>

<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.2</version>
Expand Down
13 changes: 11 additions & 2 deletions test/jte-runtime-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<java.version>17</java.version>
<junit.jupiter.version>5.9.0</junit.jupiter.version>
<maven.deploy.skip>true</maven.deploy.skip>
<skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
Expand Down Expand Up @@ -67,6 +66,16 @@

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
</configuration>
</plugin>

<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.2</version>
Expand Down

0 comments on commit 1de0902

Please sign in to comment.