Skip to content

Commit 0f01198

Browse files
committed
Upgrade to JDK 17.
Resolves spring-projectsgh-538.
1 parent dc5f528 commit 0f01198

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

Jenkinsfile

+32
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,11 @@ pipeline {
131131
steps {
132132
script {
133133
docker.withRegistry('', 'hub.docker.com-springbuildmaster') {
134+
<<<<<<< HEAD
134135
docker.image(p['docker.java.main.image']).inside(p['docker.java.inside.basic']) {
136+
=======
137+
docker.image('adoptopenjdk/openjdk17:latest').inside('-v $HOME:/tmp/jenkins-home') {
138+
>>>>>>> Upgrade to JDK 17.
135139
sh 'rm -Rf `find . -name "BACKUPDEFAULT*"`'
136140
sh 'rm -Rf `find . -name "ConfigDiskDir*"`'
137141
sh 'rm -Rf `find . -name "locator*" | grep -v "src"`'
@@ -151,6 +155,34 @@ pipeline {
151155
}
152156
}
153157
}
158+
stage('Publish documentation') {
159+
when {
160+
branch 'main'
161+
}
162+
agent {
163+
label 'data'
164+
}
165+
options { timeout(time: 20, unit: 'MINUTES') }
166+
167+
environment {
168+
ARTIFACTORY = credentials('02bd1690-b54f-4c9f-819d-a77cb7a9822c')
169+
}
170+
171+
steps {
172+
script {
173+
docker.withRegistry('', 'hub.docker.com-springbuildmaster') {
174+
docker.image('adoptopenjdk/openjdk17:latest').inside('-v $HOME:/tmp/jenkins-home') {
175+
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -s settings.xml -Pci,distribute ' +
176+
'-Dartifactory.server=https://repo.spring.io ' +
177+
"-Dartifactory.username=${ARTIFACTORY_USR} " +
178+
"-Dartifactory.password=${ARTIFACTORY_PSW} " +
179+
"-Dartifactory.distribution-repository=temp-private-local " +
180+
'-Dmaven.test.skip=true clean deploy -U -B'
181+
}
182+
}
183+
}
184+
}
185+
}
154186
}
155187

156188
post {

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242

4343
<properties>
4444
<java-module-name>spring.data.geode</java-module-name>
45-
<source.level>1.8</source.level>
45+
<source.level>17</source.level>
4646
<antlr.version>2.7.7</antlr.version>
4747
<apache-shiro.version>1.8.0</apache-shiro.version>
4848
<cache-api.version>1.1.1</cache-api.version>

0 commit comments

Comments
 (0)