DBZ-4949 Use Java 11 as a baseline

* use Java 11 as a baseline for Debezium
* use Java 17 as a baseline for tests
* remove redundant maven setup and JDK11 profile
This commit is contained in:
Vojtech Juranek 2022-04-08 13:50:48 +02:00 committed by Jiri Pechanec
parent 9e08093900
commit 78dcc1862e
4 changed files with 2 additions and 28 deletions

View File

@ -15,7 +15,6 @@
<maven.build.timestamp.format>yyyy-MM-dd HH:mm:ss</maven.build.timestamp.format> <maven.build.timestamp.format>yyyy-MM-dd HH:mm:ss</maven.build.timestamp.format>
<timestamp>${maven.build.timestamp}</timestamp> <timestamp>${maven.build.timestamp}</timestamp>
<maven.compiler.parameters>true</maven.compiler.parameters> <maven.compiler.parameters>true</maven.compiler.parameters>
<maven.compiler.release>11</maven.compiler.release>
</properties> </properties>
<dependencies> <dependencies>

View File

@ -13,10 +13,6 @@
<name>Debezium Schema Generator</name> <name>Debezium Schema Generator</name>
<packaging>maven-plugin</packaging> <packaging>maven-plugin</packaging>
<properties>
<maven.compiler.release>11</maven.compiler.release>
</properties>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>io.debezium</groupId> <groupId>io.debezium</groupId>

View File

@ -129,20 +129,12 @@
</systemProperties> </systemProperties>
</configuration> </configuration>
</plugin> </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<release>11</release>
</configuration>
</plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId> <artifactId>maven-javadoc-plugin</artifactId>
<configuration> <configuration>
<show>private</show> <show>private</show>
<nohelp>true</nohelp> <nohelp>true</nohelp>
<release>11</release>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>

17
pom.xml
View File

@ -55,11 +55,8 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<!-- Can't use the (generally preferable) release option yet, as the <maven.compiler.release>11</maven.compiler.release>
Cassandra connector still needs to be built with Java 1.8 which <maven.compiler.testRelease>17</maven.compiler.testRelease>
isn't aware of this option -->
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<!-- Enforce JDK 11 for building (handled via JBoss parent POM)--> <!-- Enforce JDK 11 for building (handled via JBoss parent POM)-->
<jdk.min.version>11</jdk.min.version> <jdk.min.version>11</jdk.min.version>
@ -436,16 +433,6 @@
</plugins> </plugins>
</build> </build>
</profile> </profile>
<profile>
<id>jdk11</id>
<activation>
<jdk>11</jdk>
</activation>
<properties>
<modules.argline>--illegal-access=permit</modules.argline>
<maven.compiler.release>8</maven.compiler.release>
</properties>
</profile>
<profile> <profile>
<id>oracle</id> <id>oracle</id>
<modules> <modules>