Skip to content

Commit aad6cb7

Browse files
authored
Merge pull request #1446 from amvanbaren/java-25
Upgrade to Java 25
2 parents 2000f64 + 6318899 commit aad6cb7

File tree

78 files changed

+2657
-5758
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+2657
-5758
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
uses: actions/setup-java@v4
2727
with:
2828
distribution: 'temurin'
29-
java-version: 17
29+
java-version: 25
3030
- name: Install Yarn
3131
run: |
3232
corepack enable

.github/workflows/sonar.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
uses: actions/setup-java@v4
6969
with:
7070
distribution: 'temurin'
71-
java-version: 17
71+
java-version: 25
7272
- name: Generate JaCoCo test report
7373
run: server/gradlew --no-daemon -p server jacocoTestReport
7474
- name: Make server libraries directory

.gitpod.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ENV DOCKER_BUMP=2
88
USER gitpod
99

1010
RUN bash -c ". /home/gitpod/.sdkman/bin/sdkman-init.sh \
11-
&& sdk install java 17.0.7-tem"
11+
&& sdk install java 25-tem"
1212

1313
RUN curl https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.7.1-linux-x86_64.tar.gz --output elasticsearch-linux-x86_64.tar.gz \
1414
&& tar -xzf elasticsearch-linux-x86_64.tar.gz \

doc/development.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,13 @@ To run the Open VSX registry in a development environment, you can use `docker c
8282

8383
- [https://docs.microsoft.com/en-us/windows/dev-environment/javascript/nodejs-on-wsl](https://docs.microsoft.com/en-us/windows/dev-environment/javascript/nodejs-on-wsl)
8484

85-
- Set up JDK 17
85+
- Set up JDK 25
8686
- sudo apt install -y wget apt-transport-https
8787
- mkdir -p /etc/apt/keyrings
8888
- wget -O - https://packages.adoptium.net/artifactory/api/gpg/key/public | tee /etc/apt/keyrings/adoptium.asc
8989
- echo "deb [signed-by=/etc/apt/keyrings/adoptium.asc] https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | tee /etc/apt/sources.list.d/adoptium.list
9090
- sudo apt update
91-
- sudo apt install temurin-17-jdk
91+
- sudo apt install temurin-25-jdk
9292

9393
- Install docker
9494

@@ -120,15 +120,15 @@ To run the Open VSX registry in a development environment, you can use `docker c
120120

121121
- Make sure the correct Java version is being used
122122

123-
- Download Java 17 if you don't have it already: https://adoptium.net/temurin/releases/
123+
- Download Java 25 if you don't have it already: https://adoptium.net/temurin/releases/
124124

125125
- Run the command `/usr/libexec/java_home –V` to see your matching Java virtual machines
126126

127-
- Pick Java 17 accordingly
127+
- Pick Java 25 accordingly
128128

129-
- export JAVA_HOME='/usr/libexec/java_home –v 17.0.7+7'
129+
- export JAVA_HOME='/usr/libexec/java_home –v 25.0.1+8'
130130

131-
- Run `java –version` to check if Java 17 is indeed being used
131+
- Run `java –version` to check if Java 25 is indeed being used
132132

133133
- https://stackoverflow.com/questions/21964709/how-to-set-or-change-the-default-java-jdk-version-on-macos
134134

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ services:
199199
- redisinsight
200200

201201
server:
202-
image: openjdk:17
202+
image: eclipse-temurin:25-jdk
203203
working_dir: /app
204204
command: sh -c 'scripts/generate-properties.sh --docker && ./gradlew assemble && ./gradlew runServer'
205205
volumes:

server/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# syntax=docker/dockerfile:1
2-
FROM gradle:jdk17 AS builder
2+
FROM gradle:jdk-25-and-25 AS builder
33

44
# Copy sources
55
WORKDIR /home/gradle
@@ -13,7 +13,7 @@ ENV CI=true
1313
RUN --mount=type=secret,id=dv-key,env=DEVELOCITY_ACCESS_KEY \
1414
./gradlew --no-daemon assemble
1515

16-
FROM eclipse-temurin:17.0.7_7-jdk
16+
FROM eclipse-temurin:25-jdk
1717

1818
# Create user openvsx and set up home directory
1919
RUN groupadd -r openvsx && useradd --no-log-init -r -g openvsx openvsx

server/build.gradle

Lines changed: 33 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ buildscript {
99
}
1010
plugins {
1111
id 'jacoco'
12-
id 'nu.studer.jooq' version '8.2.1'
12+
id 'org.jooq.jooq-codegen-gradle' version '3.19.26'
1313
id 'de.undercouch.download' version '5.4.0'
1414
id 'org.springframework.boot' version '3.5.6'
1515
id 'io.spring.dependency-management' version '1.1.0'
@@ -22,7 +22,7 @@ apply plugin: 'com.adarshr.test-logger'
2222

2323
def jooqSrcDir = 'src/main/jooq-gen'
2424
def versions = [
25-
java: '17',
25+
java: '25',
2626
flyway: '9.19.1',
2727
springdoc: '2.8.13',
2828
gcloud: '2.50.0',
@@ -45,7 +45,9 @@ def versions = [
4545
jedis: '6.2.0'
4646
]
4747
ext['junit-jupiter.version'] = versions.junit
48-
sourceCompatibility = versions.java
48+
java {
49+
sourceCompatibility = versions.java
50+
}
4951

5052
repositories {
5153
mavenCentral()
@@ -122,7 +124,7 @@ dependencies {
122124
implementation "io.opentelemetry:opentelemetry-exporter-zipkin"
123125
runtimeOnly "io.micrometer:micrometer-registry-prometheus"
124126
runtimeOnly "org.postgresql:postgresql"
125-
jooqGenerator "org.postgresql:postgresql"
127+
jooqCodegen "org.postgresql:postgresql"
126128

127129
devRuntimeOnly "org.springframework.boot:spring-boot-devtools"
128130

@@ -142,39 +144,37 @@ dependencies {
142144
}
143145

144146
jooq {
145-
// use jOOQ version defined in Spring Boot
146-
version = dependencyManagement.importedProperties['jooq.version']
147-
edition = nu.studer.gradle.jooq.JooqEdition.OSS
148-
configurations {
149-
main {
150-
generateSchemaSourceOnCompilation = false
151-
generationTool {
152-
logging = org.jooq.meta.jaxb.Logging.WARN
153-
jdbc {
154-
driver = 'org.postgresql.Driver'
155-
url = 'jdbc:postgresql://localhost:5432/postgres'
156-
user = 'gitpod'
157-
password = 'gitpod'
158-
}
159-
generator {
160-
name = 'org.jooq.codegen.DefaultGenerator'
161-
database {
162-
name = 'org.jooq.meta.postgres.PostgresDatabase'
163-
inputSchema = 'public'
164-
includes = '.*'
165-
excludes = ''
166-
}
167-
target {
168-
packageName = 'org.eclipse.openvsx.jooq'
169-
directory = jooqSrcDir
170-
}
171-
}
147+
configuration {
148+
logging = "WARN"
149+
jdbc {
150+
driver = 'org.postgresql.Driver'
151+
url = 'jdbc:postgresql://localhost:5432/postgres'
152+
user = 'openvsx'
153+
password = 'openvsx'
154+
}
155+
generator {
156+
name = 'org.jooq.codegen.DefaultGenerator'
157+
database {
158+
name = 'org.jooq.meta.postgres.PostgresDatabase'
159+
inputSchema = 'public'
160+
includes = '.*'
161+
excludes = ''
162+
}
163+
target {
164+
packageName = 'org.eclipse.openvsx.jooq'
165+
directory = jooqSrcDir
166+
}
167+
generate {
168+
implicitJoinPathsToOne = false
169+
implicitJoinPathsToMany = false
170+
implicitJoinPathUnusedConstructors = false
171+
implicitJoinPathsUseTableNameForUnambiguousFKs = false
172+
implicitJoinPathsAsKotlinProperties = false
172173
}
173174
}
174175
}
175176
}
176177

177-
178178
publishing {
179179
publications {
180180
maven(MavenPublication) {
@@ -213,13 +213,11 @@ task s3IntegrationTests(type: Test) {
213213
classpath = sourceSets.test.runtimeClasspath
214214
useJUnitPlatform()
215215
include 'org/eclipse/openvsx/storage/AwsStorageServiceIntegrationTest.class'
216-
216+
217217
// Set system properties for test configuration
218218
systemProperty 'spring.profiles.active', 's3-integration'
219219
}
220220

221-
222-
223221
jacocoTestReport {
224222
reports {
225223
xml.required = true
4.09 KB
Binary file not shown.
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.1-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
46
zipStoreBase=GRADLE_USER_HOME
57
zipStorePath=wrapper/dists

server/gradlew

Lines changed: 28 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)