This is an automated email from the ASF dual-hosted git repository.
tzimanyi pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-optaplanner.git
The following commit(s) were added to refs/heads/main by this push:
new a4e768d9cc [incubator-kie-issues#2047] Java 21 and Java 17 support
(#3181)
a4e768d9cc is described below
commit a4e768d9ccbcd50a3735c246c4470e8001ced597
Author: Christine-Jose <[email protected]>
AuthorDate: Mon Aug 11 13:59:54 2025 +0530
[incubator-kie-issues#2047] Java 21 and Java 17 support (#3181)
Updates the configuration so the repository builds and runs on both Java 21
and Java 17.
---
build/optaplanner-build-parent/pom.xml | 4 +---
optaplanner-examples/pom.xml | 22 ++++++++++++++++++++++
2 files changed, 23 insertions(+), 3 deletions(-)
diff --git a/build/optaplanner-build-parent/pom.xml
b/build/optaplanner-build-parent/pom.xml
index 8573c06188..3846ddc44e 100644
--- a/build/optaplanner-build-parent/pom.xml
+++ b/build/optaplanner-build-parent/pom.xml
@@ -87,9 +87,7 @@
<!-- Plugin configuration properties -->
<maven.min.version>3.8.1</maven.min.version>
- <maven.compiler.release>11</maven.compiler.release>
- <!-- A workaround for https://youtrack.jetbrains.com/issue/IDEA-276403. -->
- <maven.compiler.target>11</maven.compiler.target>
+ <maven.compiler.release>17</maven.compiler.release>
<!-- This property needs to be defined in all modules that use the
packaging 'jar'.
It is used by different plugins to make sure the module/bundle names
are consistent. -->
<java.module.name/>
diff --git a/optaplanner-examples/pom.xml b/optaplanner-examples/pom.xml
index 9b4bb03262..742b925df5 100644
--- a/optaplanner-examples/pom.xml
+++ b/optaplanner-examples/pom.xml
@@ -261,4 +261,26 @@
<artifactId>poi-ooxml</artifactId>
</dependency>
</dependencies>
+ <profiles>
+ <profile>
+ <id>jdk-semeru</id>
+ <activation>
+ <property>
+ <name>java.vendor</name>
+ <value>IBM Corporation</value>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <argLine>-XX:+PositiveIdentityHash</argLine>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]