Skip to content

Commit

Permalink
HV-1989 Update documentation examples to use Java 17 where applicable
Browse files Browse the repository at this point in the history
  • Loading branch information
marko-bekhta committed Jun 20, 2024
1 parent c34dee0 commit 7ab7ac3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions documentation/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,9 @@
<wildflyVersion>${version.wildfly}</wildflyVersion>
<wildflySecondaryVersion>${version.wildfly.secondary}</wildflySecondaryVersion>

<jdkVersion>${java-version.main.release}</jdkVersion>
<compilerPluginVersion>${version.compiler.plugin}</compilerPluginVersion>

<!-- URLs -->
<javaApiDocsUrl>${java.api-docs.base-url}/</javaApiDocsUrl>
<bvApiDocsUrl>${bv.api-docs.base-url}/</bvApiDocsUrl>
Expand Down
4 changes: 2 additions & 2 deletions documentation/src/main/asciidoc/ch01.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,9 @@ $JBOSS_HOME/bin/jboss-cli.sh patch rollback --reset-configuration=true
You can learn more about the WildFly patching infrastructure in general https://developer.jboss.org/wiki/SingleInstallationPatching/[here] and http://www.mastertheboss.com/jboss-server/jboss-configuration/managing-wildfly-and-eap-patches[here].

[[validator-gettingstarted-java9]]
==== Running on Java 11+
==== Running on Java {jdkVersion}+

Support for Java 11 and the Java Platform Module System (JPMS) is present in a preliminary form.
Support for the Java Platform Module System (JPMS) is present in a preliminary form.
There are no JPMS module descriptors provided, but Hibernate Validator is usable as automatic modules.

These are the module names as declared using the `Automatic-Module-Name` header:
Expand Down
8 changes: 4 additions & 4 deletions documentation/src/main/asciidoc/ch13.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ For using the Hibernate Validator annotation processor with Maven, set it up via
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.6.1</version>
<version>{compilerPluginVersion}</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<source>{jdkVersion}</source>
<target>{jdkVersion}</target>
<annotationProcessorPaths>
<path>
<groupId>org.hibernate.validator</groupId>
Expand Down Expand Up @@ -185,7 +185,7 @@ provided you have the https://www.eclipse.org/m2e/[M2E Eclipse plug-in] installe
For plain Eclipse projects follow these steps to set up the annotation processor:

* Right-click your project, choose "Properties"
* Go to "Java Compiler" and make sure, that "Compiler compliance level" is set to "1.8".
* Go to "Java Compiler" and make sure, that "Compiler compliance level" is set to "{jdkVersion}".
Otherwise the processor won't be activated
* Go to "Java Compiler - Annotation Processing" and choose "Enable annotation processing"
* Go to "Java Compiler - Annotation Processing - Factory Path" and add the JAR
Expand Down

0 comments on commit 7ab7ac3

Please sign in to comment.