Skip to content

Commit

Permalink
Changed to build with Java 11 (#488)
Browse files Browse the repository at this point in the history
The resulting JAR is still compatible with Java 8.
  • Loading branch information
freemanjp committed Aug 14, 2022
1 parent afc870e commit a5fbfea
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/maven-build.yml
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: 8
java-version: 11
distribution: 'temurin'
- name: Cache local Maven repository
uses: gantsign/maven-periodic-cache-action@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/maven-deploy.yml
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: 8
java-version: 11
distribution: 'temurin'
gpg-private-key: ${{ secrets.GPG_KEY }}
- name: Cache local Maven repository
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: 8
java-version: 11
distribution: 'temurin'
- name: Cache local Maven repository
uses: gantsign/maven-periodic-cache-action@v1
Expand Down
33 changes: 32 additions & 1 deletion pom.xml
Expand Up @@ -51,9 +51,12 @@
<doxia.version>1.11.1</doxia.version>
<guice.version>4.2.0</guice.version>
<jacoco-maven-plugin.version>0.8.7</jacoco-maven-plugin.version>
<java.require.version>11</java.require.version>
<jdeps.multiRelease>11</jdeps.multiRelease>
<kotlin.version>1.7.0</kotlin.version>
<ktlint.version>0.46.1</ktlint.version>
<license-maven-plugin.version>1.20</license-maven-plugin.version>
<maven.compiler.release>8</maven.compiler.release>
<maven.version>3.5.4</maven.version>
<mockk.version>1.9.3</mockk.version>
<plexus-containers.version>2.1.1</plexus-containers.version>
Expand Down Expand Up @@ -475,6 +478,11 @@
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>animal-sniffer-maven-plugin</artifactId>
<version>1.20</version>
</plugin>
<plugin>
<groupId>org.jetbrains.dokka</groupId>
<artifactId>dokka-maven-plugin</artifactId>
Expand All @@ -498,7 +506,7 @@
<version>[3.3.9,3.7)</version>
</requireMavenVersion>
<requireJavaVersion>
<version>[1.8,1.9)</version>
<version>[11,12)</version>
</requireJavaVersion>
<!-- When there are multiple versions of a dependency you have to choose which one to use. -->
<dependencyConvergence/>
Expand Down Expand Up @@ -547,6 +555,9 @@
</dependency>
</dependencies>
</banDuplicateClasses>
<enforceBytecodeVersion>
<maxJdkVersion>8</maxJdkVersion>
</enforceBytecodeVersion>
</rules>
</configuration>
</execution>
Expand Down Expand Up @@ -627,6 +638,26 @@
<skipDeploy>true</skipDeploy>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>animal-sniffer-maven-plugin</artifactId>
<configuration>
<signature>
<groupId>org.codehaus.mojo.signature</groupId>
<artifactId>java18</artifactId>
<version>1.0</version>
</signature>
</configuration>
<executions>
<execution>
<id>verify-java8</id>
<goals>
<goal>check</goal>
</goals>
<phase>test</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
Expand Down

0 comments on commit a5fbfea

Please sign in to comment.