Skip to content

Commit ac6b30d

Browse files
committed
Update build and runtime compiler release version to 25
1 parent 67319c9 commit ac6b30d

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

README.adoc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ In short, javapackages-validator helps maintain Java packaging quality and consi
2727
* During package reviews by distribution maintainers.
2828

2929
== Building
30-
The project is built with Maven. JDK version 23 is required. Simply run:
30+
The project is built with Maven. JDK version 25 is required. Simply run:
3131
[source, shell]
3232
----
3333
$ mvn install
3434
----
3535

3636
== Usage
3737
The tool is executed from the command line using the `java` command with the proper classpath.
38-
JVM version 23 is required.
38+
JVM version 25 is required.
3939

4040
[subs = quotes]
4141
----
@@ -94,12 +94,12 @@ Class path may already exist and contain `.class` files, this is useful to imple
9494
The entries on this class path are used to add additional validator classes to the tool.
9595

9696
==== Compiler configuration
97-
The directory pointed to by the `--source-path` can contain file `javapackages-validator.properties`, which is loaded as a standard https://docs.oracle.com/en/java/javase/23/docs/api/java.base/java/util/Properties.html[Java properties file] and is used to configure compilation.
97+
The directory pointed to by the `--source-path` can contain file `javapackages-validator.properties`, which is loaded as a standard https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Properties.html[Java properties file] and is used to configure compilation.
9898
It can contain the following fields:
9999

100100
`compiler.release`::
101101
The value of this field is passed to Java compiler as `--release` argument.
102-
Defaults to `23` if not set.
102+
Defaults to `25` if not set.
103103

104104
`dependencies`::
105105
Specifies extra dependencies to add to class path, in addition to `--class-path`.
@@ -126,7 +126,7 @@ Recompilation is caused by any of these conditions:
126126
Recompilation causes the class path directory to be cleaned before the newly compiled classes are placed there.
127127

128128
=== Service file
129-
The file `META-INF/services/org.fedoraproject.javapackages.validator.spi.ValidatorFactory` is a standard https://docs.oracle.com/en/java/javase/23/docs/api/java.base/java/util/ServiceLoader.html#deploying-service-providers-on-the-class-path-heading[Java service file].
129+
The file `META-INF/services/org.fedoraproject.javapackages.validator.spi.ValidatorFactory` is a standard https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/ServiceLoader.html#deploying-service-providers-on-the-class-path-heading[Java service file].
130130
It contains a line-separated list of validator factory class names which are available to be executed.
131131
This file will be copied from the source path to the class path and is expected to be present on the class path if source path is not specified.
132132

@@ -160,7 +160,7 @@ The key is a tmt test name. The value of the field must be a list of strings. It
160160

161161
`exclude-tests-matching`::
162162
The value of this field is a list of strings.
163-
The strings must be valid https://docs.oracle.com/en/java/javase/23/docs/api/java.base/java/util/regex/Pattern.html[Java regular expressions].
163+
The strings must be valid https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/regex/Pattern.html[Java regular expressions].
164164
If any of these patterns matches the test name of a validator, it will be skipped.
165165

166166
.Example of `javapackages-validator.yaml` configuration file

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/x
134134
<artifactId>maven-compiler-plugin</artifactId>
135135
<version>3.14.1</version>
136136
<configuration>
137-
<release>23</release>
137+
<release>25</release>
138138
</configuration>
139139
</plugin>
140140
<plugin>

src/main/java/org/fedoraproject/javapackages/validator/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ private void compileFiles() throws IOException {
243243
compilerOptions.add("-proc:none");
244244

245245
compilerOptions.add("--release");
246-
compilerOptions.add(props.getProperty("compiler.release", "23"));
246+
compilerOptions.add(props.getProperty("compiler.release", "25"));
247247

248248
if (!parameters.classPaths.isEmpty()) {
249249
compilerOptions.add("-cp");

0 commit comments

Comments
 (0)