-
Notifications
You must be signed in to change notification settings - Fork 323
Housekeeping: allow more jdks to be used, fixes #1314 #1315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 3 commits
a986979
06d9819
698ff62
6382eca
8717a27
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -55,7 +55,6 @@ | |
| </modules> | ||
|
|
||
| <properties> | ||
| <java.version>1.8</java.version> | ||
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
|
|
||
| <dependencies.version>2.7.17</dependencies.version> | ||
|
|
@@ -74,6 +73,7 @@ | |
| <wire.plugin.version>3.0.2</wire.plugin.version> | ||
| <wire.suffix></wire.suffix> | ||
| <spotless.version>2.44.4</spotless.version> | ||
| <m2e.apt.activation>disabled</m2e.apt.activation><!-- used by Eclipse --> | ||
| </properties> | ||
|
|
||
| <dependencyManagement> | ||
|
|
@@ -85,7 +85,21 @@ | |
| <type>pom</type> | ||
| <scope>import</scope> | ||
| </dependency> | ||
|
|
||
| <dependency> | ||
| <groupId>com.fasterxml.jackson.core</groupId> | ||
| <artifactId>jackson-core</artifactId> | ||
| <version>${jackson.version}</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>com.fasterxml.jackson.core</groupId> | ||
| <artifactId>jackson-annotations</artifactId> | ||
| <version>${jackson.version}</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>com.fasterxml.jackson.core</groupId> | ||
| <artifactId>jackson-databind</artifactId> | ||
| <version>${jackson.version}</version> | ||
| </dependency> | ||
Kehrlann marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| <dependency> | ||
| <groupId>com.github.zafarkhaja</groupId> | ||
| <artifactId>java-semver</artifactId> | ||
|
|
@@ -163,9 +177,31 @@ | |
| <arg>-Xlint:-processing</arg> | ||
| <arg>-Xlint:-serial</arg> | ||
| </compilerArgs> | ||
| <annotationProcessorPaths> | ||
| <dependency> | ||
| <groupId>org.immutables</groupId> | ||
| <artifactId>value</artifactId> | ||
| <version>${immutables.version}</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>com.fasterxml.jackson.core</groupId> | ||
| <artifactId>jackson-core</artifactId> | ||
| <version>${jackson.version}</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>com.fasterxml.jackson.core</groupId> | ||
| <artifactId>jackson-annotations</artifactId> | ||
| <version>${jackson.version}</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>com.fasterxml.jackson.core</groupId> | ||
| <artifactId>jackson-databind</artifactId> | ||
| <version>${jackson.version}</version> | ||
| </dependency> | ||
| </annotationProcessorPaths> | ||
| <showWarnings>true</showWarnings> | ||
| <source>${java.version}</source> | ||
| <target>${java.version}</target> | ||
| <source>${java.specification.version}</source> | ||
| <target>${java.specification.version}</target> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you build with JDK 11, the jar will have the same name but a different target than with 1.8 ; we should probably pin to 1.8
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You are right, everything before JDK 16 uses the same jar file name. I can either use different names, as in the later JDKs or I can pin everything before 16 to 1.8. The effort should (hopefully) be the same. I will check tomorrow.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Now in all JDK versions the version is part of the jar name. That's more consistent. Hopefully the changed jar name does not create problems in other tools. |
||
| </configuration> | ||
| </plugin> | ||
| <plugin> | ||
|
|
@@ -336,52 +372,30 @@ | |
| </profile> | ||
|
|
||
| <profile> | ||
| <id>jdk-17</id> | ||
| <activation> | ||
| <jdk>17</jdk> | ||
| </activation> | ||
| <properties> | ||
| <java.version>17</java.version> | ||
| <dependencies.version>3.2.1</dependencies.version> | ||
| <wire.version>4.9.1</wire.version> | ||
| <wire.plugin.version>3.0.2</wire.plugin.version> | ||
| <wire.suffix>-jvm</wire.suffix> | ||
| </properties> | ||
| <build> | ||
| <finalName>${project.artifactId}-jdk17-${project.version}</finalName> | ||
| <plugins> | ||
| <plugin> | ||
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-compiler-plugin</artifactId> | ||
| <!-- @see https://github.com/immutables/immutables/issues/1339#issuecomment-1016125673 --> | ||
| <configuration> | ||
| <fork>true</fork> | ||
| <compilerArgs combine.children="append"> | ||
| <arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED</arg> | ||
| </compilerArgs> | ||
| <showWarnings>true</showWarnings> | ||
| <source>${java.version}</source> | ||
| <target>${java.version}</target> | ||
| </configuration> | ||
| </plugin> | ||
| </plugins> | ||
| </build> | ||
| </profile> | ||
|
|
||
| <profile> | ||
| <id>jdk-21</id> | ||
| <id>jdk-16+</id> | ||
| <activation> | ||
| <jdk>21</jdk> | ||
| <jdk>(16,]</jdk> | ||
| </activation> | ||
| <properties> | ||
| <java.version>21</java.version> | ||
| <dependencies.version>3.2.1</dependencies.version> | ||
| <wire.version>4.9.1</wire.version> | ||
| <wire.plugin.version>3.0.2</wire.plugin.version> | ||
| <wire.suffix>-jvm</wire.suffix> | ||
| </properties> | ||
| <dependencies> | ||
| <dependency> | ||
| <groupId>org.mockito</groupId> | ||
| <artifactId>mockito-core</artifactId> | ||
| <version>${mockito.version}</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.mockito</groupId> | ||
| <artifactId>mockito-subclass</artifactId> | ||
| <version>${mockito.version}</version> | ||
| </dependency> | ||
| </dependencies> | ||
| <build> | ||
| <finalName>${project.artifactId}-jdk21-${project.version}</finalName> | ||
| <finalName>${project.artifactId}-jdk${java.specification.version}-${project.version}</finalName> | ||
| <plugins> | ||
| <plugin> | ||
| <groupId>org.apache.maven.plugins</groupId> | ||
|
|
@@ -393,8 +407,8 @@ | |
| <arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED</arg> | ||
| </compilerArgs> | ||
| <showWarnings>true</showWarnings> | ||
| <source>${java.version}</source> | ||
| <target>${java.version}</target> | ||
| <source>${java.specification.version}</source> | ||
| <target>${java.specification.version}</target> | ||
| </configuration> | ||
| </plugin> | ||
| </plugins> | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.