Skip to content

Commit

Permalink
Merge pull request #45 from groldan/build/maven_compiler_release
Browse files Browse the repository at this point in the history
Set Java 17 as the .class version on all modules
  • Loading branch information
groldan authored Feb 29, 2024
2 parents afc18b1 + e4f0b44 commit 5865e13
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 9 deletions.
2 changes: 0 additions & 2 deletions examples/java-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
</parent>
<artifactId>acl-java-client-example</artifactId>
<properties>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<testcontainers.version>1.19.3</testcontainers.version>
</properties>
<dependencyManagement>
Expand Down
13 changes: 13 additions & 0 deletions examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,22 @@
</modules>
<properties>
<acl.version>2.0-SNAPSHOT</acl.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version>
<inherited>true</inherited>
<configuration>
<release>17</release>
<debug>true</debug>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>com.spotify.fmt</groupId>
<artifactId>fmt-maven-plugin</artifactId>
Expand Down
5 changes: 4 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,14 @@
</distributionManagement>
<properties>
<revision>2.0-SNAPSHOT</revision>
<java.version>17</java.version>
<fmt.action>format</fmt.action>
<fmt.skip>false</fmt.skip>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<openapi-generator-maven-plugin.version>7.0.1</openapi-generator-maven-plugin.version>
<openapi-codegen-skip>false</openapi-codegen-skip>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>
<dependencyManagement>
<dependencies>
Expand Down Expand Up @@ -291,7 +294,7 @@
<version>3.11.0</version>
<inherited>true</inherited>
<configuration>
<release>11</release>
<release>${java.version}</release>
<debug>true</debug>
<encoding>UTF-8</encoding>
</configuration>
Expand Down
4 changes: 0 additions & 4 deletions src/artifacts/testcontainer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@
<artifactId>gs-acl-testcontainer</artifactId>
<packaging>jar</packaging>
<name>acl-testcontainer</name>
<properties>
<maven.compiler.source>1</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>org.testcontainers</groupId>
Expand Down
2 changes: 0 additions & 2 deletions src/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
<module>artifacts</module>
</modules>
<properties>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<spring-cloud.version>2021.0.8</spring-cloud.version>
<spring-boot.version>2.7.18</spring-boot.version>
<spring-boot-3.version>3.0.13</spring-boot-3.version>
Expand Down

0 comments on commit 5865e13

Please sign in to comment.