Skip to content

Commit a07e76f

Browse files
authored
Jdk 25 (#152)
make build reproducible
1 parent ff741d2 commit a07e76f

File tree

6 files changed

+58
-25
lines changed

6 files changed

+58
-25
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
env:
88
JAVA_DIST: 'temurin'
9-
JAVA_VERSION: '24'
9+
JAVA_VERSION: '25'
1010

1111
jobs:
1212
linux:
@@ -222,8 +222,10 @@ jobs:
222222
distribution: 'temurin'
223223
java-version: ${{ env.JAVA_VERSION }}
224224
cache: 'maven'
225-
- name: Ensure to use tagged version
226-
run: ./mvnw versions:set --file ./pom.xml -DnewVersion=${GITHUB_REF##*/}
225+
- name: Ensure to use tagged version and update build timestamp
226+
run: |
227+
./mvnw versions:set --file ./pom.xml -DnewVersion=${GITHUB_REF##*/}
228+
./mvnw versions:set-property --file ./pom.xml -Dproperty=project.build.outputTimestamp -DnewVersion="$(date --iso-8601=seconds)"
227229
- name: Build
228230
run: >
229231
./mvnw -B install -DskipTests

jfuse-linux-aarch64/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
<plugin>
8282
<groupId>io.github.coffeelibs</groupId>
8383
<artifactId>jextract-maven-plugin</artifactId>
84-
<version>0.4.0</version>
84+
<version>${jextract.version}</version>
8585
<configuration>
8686
<executable>${jextract.path}</executable>
8787
<headerSearchPaths>${linux.headerSearchPath}</headerSearchPaths>

jfuse-linux-amd64/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
<plugin>
8282
<groupId>io.github.coffeelibs</groupId>
8383
<artifactId>jextract-maven-plugin</artifactId>
84-
<version>0.4.0</version>
84+
<version>${jextract.version}</version>
8585
<configuration>
8686
<executable>${jextract.path}</executable>
8787
<headerSearchPaths>${linux.headerSearchPath}</headerSearchPaths>

jfuse-mac/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
<plugin>
8282
<groupId>io.github.coffeelibs</groupId>
8383
<artifactId>jextract-maven-plugin</artifactId>
84-
<version>0.4.0</version>
84+
<version>${jextract.version}</version>
8585
<configuration>
8686
<executable>${jextract.path}</executable>
8787
<headerSearchPaths>${mac.headerSearchPath}</headerSearchPaths>

jfuse-win/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
<plugin>
8484
<groupId>io.github.coffeelibs</groupId>
8585
<artifactId>jextract-maven-plugin</artifactId>
86-
<version>0.4.0</version>
86+
<version>${jextract.version}</version>
8787
<configuration>
8888
<executable>${jextract.path}</executable>
8989
<headerSearchPaths>${win.ucrtHeaderPath}</headerSearchPaths>

pom.xml

Lines changed: 49 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,41 @@
3737

3838
<properties>
3939
<maven.deploy.skip>false</maven.deploy.skip>
40-
<java.version>22</java.version>
40+
<java.version>25</java.version>
4141
<jextract.path>${user.home}/.sdkman/candidates/jextract/current/bin/jextract</jextract.path>
4242
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
43+
<!-- TODO: for reproducible builds, can be removed with Maven 4 -->
44+
<project.build.outputTimestamp>2026-01-26T00:00:00Z</project.build.outputTimestamp>
45+
46+
<jb-annotations.version>26.0.2-1</jb-annotations.version>
47+
48+
<!-- test dependencies -->
49+
<junit.version>6.0.2</junit.version>
50+
<mockito.version>5.21.0</mockito.version>
51+
52+
<!-- build-time dependencies -->
53+
<license-generator.version>2.7.0</license-generator.version>
54+
<exec-maven.version>3.5.1</exec-maven.version>
55+
56+
<central-publishing.version>0.8.0</central-publishing.version>
57+
<jacoco.version>0.8.14</jacoco.version>
58+
<jextract.version>0.4.3</jextract.version>
59+
<junit-tree-reporter.version>1.4.0</junit-tree-reporter.version>
60+
<mvn-clean.version>3.5.0</mvn-clean.version>
61+
<mvn-compiler.version>3.14.1</mvn-compiler.version>
62+
<mvn-dependency.version>3.8.1</mvn-dependency.version>
63+
<mvn-deploy.version>3.1.4</mvn-deploy.version>
64+
<mvn-enforcer.version>3.6.1</mvn-enforcer.version>
65+
<mvn-failsafe.version>3.5.4</mvn-failsafe.version>
66+
<mvn-javadoc.version>3.11.3</mvn-javadoc.version>
67+
<mvn-jar.version>3.5.0</mvn-jar.version>
68+
<mvn-gpg.version>3.2.8</mvn-gpg.version>
69+
<mvn-resources.version>3.3.1</mvn-resources.version>
70+
<mvn-source.version>3.3.1</mvn-source.version>
71+
<mvn-surefire.version>3.5.4</mvn-surefire.version>
72+
73+
<!-- Property used by surefire to determine jacoco engine -->
74+
<surefire.jacoco.args></surefire.jacoco.args>
4375
</properties>
4476

4577
<modules>
@@ -55,19 +87,19 @@
5587
<dependency>
5688
<groupId>org.jetbrains</groupId>
5789
<artifactId>annotations</artifactId>
58-
<version>26.0.2</version>
90+
<version>${jb-annotations.version}</version>
5991
<scope>provided</scope>
6092
</dependency>
6193
<dependency>
6294
<groupId>org.junit.jupiter</groupId>
6395
<artifactId>junit-jupiter</artifactId>
64-
<version>5.12.1</version>
96+
<version>${junit.version}</version>
6597
<scope>test</scope>
6698
</dependency>
6799
<dependency>
68100
<groupId>org.mockito</groupId>
69101
<artifactId>mockito-core</artifactId>
70-
<version>5.17.0</version>
102+
<version>${mockito.version}</version>
71103
<scope>test</scope>
72104
</dependency>
73105
</dependencies>
@@ -78,12 +110,12 @@
78110
<plugin>
79111
<groupId>org.apache.maven.plugins</groupId>
80112
<artifactId>maven-dependency-plugin</artifactId>
81-
<version>3.8.1</version>
113+
<version>${mvn-dependency.version}</version>
82114
</plugin>
83115
<plugin>
84116
<groupId>org.apache.maven.plugins</groupId>
85117
<artifactId>maven-compiler-plugin</artifactId>
86-
<version>3.14.0</version>
118+
<version>3.14.1</version>
87119
<configuration>
88120
<release>${java.version}</release>
89121
<encoding>UTF-8</encoding>
@@ -93,65 +125,64 @@
93125
<plugin>
94126
<groupId>org.apache.maven.plugins</groupId>
95127
<artifactId>maven-enforcer-plugin</artifactId>
96-
<version>3.5.0</version>
128+
<version>${mvn-enforcer.version}</version>
97129
</plugin>
98130
<plugin>
99131
<groupId>org.apache.maven.plugins</groupId>
100132
<artifactId>maven-clean-plugin</artifactId>
101-
<version>3.4.1</version>
133+
<version>${mvn-clean.version}</version>
102134
</plugin>
103135
<plugin>
104136
<groupId>org.apache.maven.plugins</groupId>
105137
<artifactId>maven-gpg-plugin</artifactId>
106-
<version>3.2.7</version>
138+
<version>${mvn-gpg.version}</version>
107139
</plugin>
108140
<plugin>
109141
<groupId>org.apache.maven.plugins</groupId>
110142
<artifactId>maven-jar-plugin</artifactId>
111-
<version>3.4.2</version>
143+
<version>${mvn-jar.version}</version>
112144
</plugin>
113145
<plugin>
114146
<groupId>org.apache.maven.plugins</groupId>
115147
<artifactId>maven-source-plugin</artifactId>
116-
<version>3.3.1</version>
148+
<version>${mvn-source.version}</version>
117149
</plugin>
118150
<plugin>
119151
<groupId>org.apache.maven.plugins</groupId>
120152
<artifactId>maven-javadoc-plugin</artifactId>
121-
<version>3.11.2</version>
153+
<version>${mvn-javadoc.version}</version>
122154
</plugin>
123155
<plugin>
124156
<groupId>org.apache.maven.plugins</groupId>
125157
<artifactId>maven-surefire-plugin</artifactId>
126-
<version>3.5.3</version>
158+
<version>${mvn-surefire.version}</version>
127159
</plugin>
128160
<plugin>
129161
<groupId>org.apache.maven.plugins</groupId>
130162
<artifactId>maven-failsafe-plugin</artifactId>
131-
<version>3.5.3</version>
163+
<version>${mvn-failsafe.version}</version>
132164
</plugin>
133165
<plugin>
134166
<groupId>org.sonatype.central</groupId>
135167
<artifactId>central-publishing-maven-plugin</artifactId>
136-
<version>0.7.0</version>
168+
<version>${central-publishing.version}</version>
137169
</plugin>
138170
<plugin>
139171
<groupId>org.apache.maven.plugins</groupId>
140172
<artifactId>maven-deploy-plugin</artifactId>
141-
<version>3.1.4</version>
173+
<version>${mvn-deploy.version}</version>
142174
</plugin>
143175
<plugin>
144176
<groupId>org.jacoco</groupId>
145177
<artifactId>jacoco-maven-plugin</artifactId>
146-
<version>0.8.13</version>
178+
<version>${jacoco.version}</version>
147179
</plugin>
148180
</plugins>
149181
</pluginManagement>
150182
<plugins>
151183
<plugin>
152184
<groupId>org.apache.maven.plugins</groupId>
153185
<artifactId>maven-dependency-plugin</artifactId>
154-
<version>3.8.1</version>
155186
<executions>
156187
<execution>
157188
<id>jar-paths-to-properties</id>

0 commit comments

Comments
 (0)