diff --git a/.mvn/jvm.config b/.mvn/jvm.config new file mode 100644 index 00000000000..1be7d02aa6f --- /dev/null +++ b/.mvn/jvm.config @@ -0,0 +1 @@ +--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/sun.nio.ch=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c31de21788e..1bf0398848b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -154,7 +154,7 @@ and transform it to use Hibernate ORM 6 instead of Hibernate ORM 5.x. ### Basic build -You will need JDK 11 exactly; +You will need JDK 17 exactly; newer JDKs will require you to [pass additional properties](#other-jdks) in order for tests to run correctly. @@ -198,16 +198,16 @@ To test Hibernate Search against JDK 8: ./mvnw clean install -Djava-version.test.release=8 -Djava-version.test.launcher.java_home=/path/to/jdk8 ``` -To test Hibernate Search against JDKs newer than 11: +To test Hibernate Search against JDKs other than 8 or the default 17: ```bash -./mvnw clean install -Djava-version.test.release=17 -Djava-version.test.compiler.java_home=/path/to/jdk17 +./mvnw clean install -Djava-version.test.release=11 -Djava-version.test.compiler.java_home=/path/to/jdk11 ``` -Or more simply, if the newer JDK you want to test against is your default JDK: +Or more simply, if the newer JDK you want to test against is newer than 17 and is your default JDK: ```bash -./mvnw clean install -Djava-version.test.release=17 +./mvnw clean install -Djava-version.test.release=18 ``` ### Elasticsearch diff --git a/Jenkinsfile b/Jenkinsfile index 6bdafec2760..3a8a819ae72 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -145,7 +145,7 @@ import org.hibernate.jenkins.pipeline.helpers.alternative.AlternativeMultiMap * settingsId: ... */ -@Field final String DEFAULT_JDK_TOOL = 'OpenJDK 11 Latest' +@Field final String DEFAULT_JDK_TOOL = 'OpenJDK 17 Latest' @Field final String MAVEN_TOOL = 'Apache Maven 3.8' // Default node pattern, to be used for resource-intensive stages. @@ -171,20 +171,14 @@ stage('Configure') { jdk: [ // This should not include every JDK; in particular let's not care too much about EOL'd JDKs like version 9 // See http://www.oracle.com/technetwork/java/javase/eol-135779.html - // We only run the tests with JDK8, but we compile them with JDK11 (with --release 8). + // We only run the tests with JDK8, but we compile them with JDK17 (with --release 8). new JdkBuildEnvironment(version: '8', testLauncherTool: 'OpenJDK 8 Latest', condition: TestCondition.AFTER_MERGE), new JdkBuildEnvironment(version: '11', testCompilerTool: 'OpenJDK 11 Latest', + condition: TestCondition.AFTER_MERGE), + new JdkBuildEnvironment(version: '17', testCompilerTool: 'OpenJDK 17 Latest', condition: TestCondition.BEFORE_MERGE, isDefault: true), - new JdkBuildEnvironment(version: '14', testCompilerTool: 'OpenJDK 14 Latest', - condition: TestCondition.ON_DEMAND), - new JdkBuildEnvironment(version: '15', testCompilerTool: 'OpenJDK 15 Latest', - condition: TestCondition.ON_DEMAND), - new JdkBuildEnvironment(version: '16', testCompilerTool: 'OpenJDK 16 Latest', - condition: TestCondition.ON_DEMAND), - new JdkBuildEnvironment(version: '17', testCompilerTool: 'OpenJDK 17 Latest', - condition: TestCondition.AFTER_MERGE), new JdkBuildEnvironment(version: '18', testCompilerTool: 'OpenJDK 18 Latest', condition: TestCondition.AFTER_MERGE), new JdkBuildEnvironment(version: '19', testCompilerTool: 'OpenJDK 19 Latest', diff --git a/engine/src/main/java/org/hibernate/search/engine/cfg/package-info.java b/engine/src/main/java/org/hibernate/search/engine/cfg/package-info.java index 1485952fa1e..ef2a652da24 100644 --- a/engine/src/main/java/org/hibernate/search/engine/cfg/package-info.java +++ b/engine/src/main/java/org/hibernate/search/engine/cfg/package-info.java @@ -8,12 +8,12 @@ /** * This package contains everything related to the configuration of the Hibernate Search engine. * - *

Common expected types for property values

+ *

Common expected types for property values

* * Below are some commonly used property types across all Hibernate Search settings * (engine, backends, mappers, ...). * - *

Bean reference

+ *

Bean reference

* * A reference to a bean of type {@code T} can be passed as either: *