Skip to content

Commit 8897e31

Browse files
committed
Prepare 3.0 development.
Closes #283
1 parent 8ff2e09 commit 8897e31

File tree

2 files changed

+7
-57
lines changed

2 files changed

+7
-57
lines changed

Diff for: Jenkinsfile

+4-53
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ pipeline {
33

44
triggers {
55
pollSCM 'H/10 * * * *'
6-
upstream(upstreamProjects: "spring-data-commons/main", threshold: hudson.model.Result.SUCCESS)
6+
upstream(upstreamProjects: "spring-data-commons/3.0.x", threshold: hudson.model.Result.SUCCESS)
77
}
88

99
options {
@@ -12,7 +12,7 @@ pipeline {
1212
}
1313

1414
stages {
15-
stage("test: baseline (jdk8)") {
15+
stage("test: baseline (Java 17)") {
1616
when {
1717
beforeAgent(true)
1818
anyOf {
@@ -30,63 +30,14 @@ pipeline {
3030
steps {
3131
script {
3232
docker.withRegistry('', 'hub.docker.com-springbuildmaster') {
33-
docker.image('adoptopenjdk/openjdk8:latest').inside('-v $HOME:/tmp/jenkins-home') {
33+
docker.image('openjdk:17-bullseye').inside('-v $HOME:/tmp/jenkins-home') {
3434
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -s settings.xml clean dependency:list test -Dsort -U -B'
3535
}
3636
}
3737
}
3838
}
3939
}
4040

41-
stage("Test other configurations") {
42-
when {
43-
beforeAgent(true)
44-
allOf {
45-
branch(pattern: "main|(\\d\\.\\d\\.x)", comparator: "REGEXP")
46-
not { triggeredBy 'UpstreamCause' }
47-
}
48-
}
49-
parallel {
50-
stage("test: baseline (jdk11)") {
51-
agent {
52-
label 'data'
53-
}
54-
options { timeout(time: 30, unit: 'MINUTES') }
55-
environment {
56-
ARTIFACTORY = credentials('02bd1690-b54f-4c9f-819d-a77cb7a9822c')
57-
}
58-
steps {
59-
script {
60-
docker.withRegistry('', 'hub.docker.com-springbuildmaster') {
61-
docker.image('adoptopenjdk/openjdk11:latest').inside('-v $HOME:/tmp/jenkins-home') {
62-
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -s settings.xml -Pjava11 clean dependency:list test -Dsort -U -B'
63-
}
64-
}
65-
}
66-
}
67-
}
68-
69-
stage("test: baseline (jdk17)") {
70-
agent {
71-
label 'data'
72-
}
73-
options { timeout(time: 30, unit: 'MINUTES') }
74-
environment {
75-
ARTIFACTORY = credentials('02bd1690-b54f-4c9f-819d-a77cb7a9822c')
76-
}
77-
steps {
78-
script {
79-
docker.withRegistry('', 'hub.docker.com-springbuildmaster') {
80-
docker.image('openjdk:17-bullseye').inside('-v $HOME:/tmp/jenkins-home') {
81-
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -s settings.xml -Pjava11 clean dependency:list test -Dsort -U -B'
82-
}
83-
}
84-
}
85-
}
86-
}
87-
}
88-
}
89-
9041
stage('Release to artifactory') {
9142
when {
9243
beforeAgent(true)
@@ -107,7 +58,7 @@ pipeline {
10758
steps {
10859
script {
10960
docker.withRegistry('', 'hub.docker.com-springbuildmaster') {
110-
docker.image('adoptopenjdk/openjdk8:latest').inside('-v $HOME:/tmp/jenkins-home') {
61+
docker.image('openjdk:17-bullseye').inside('-v $HOME:/tmp/jenkins-home') {
11162
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -s settings.xml -Pci,artifactory ' +
11263
'-Dartifactory.server=https://repo.spring.io ' +
11364
"-Dartifactory.username=${ARTIFACTORY_USR} " +

Diff for: pom.xml

+3-4
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
<parent>
1515
<groupId>org.springframework.data.build</groupId>
1616
<artifactId>spring-data-parent</artifactId>
17-
<version>2.6.0-SNAPSHOT</version>
17+
<version>3.0.0-SNAPSHOT</version>
1818
</parent>
1919

2020
<properties>
2121
<spring-ldap>2.3.4.RELEASE</spring-ldap>
22-
<springdata.commons>2.6.0-SNAPSHOT</springdata.commons>
22+
<springdata.commons>3.0.0-SNAPSHOT</springdata.commons>
2323
<java-module-name>spring.data.ldap</java-module-name>
2424
</properties>
2525

@@ -87,7 +87,7 @@
8787
<groupId>org.apache.geronimo.specs</groupId>
8888
<artifactId>geronimo-jcdi_2.0_spec</artifactId>
8989
<version>1.0.1</version>
90-
<scope>test</scope>
90+
<optional>true</optional>
9191
</dependency>
9292

9393
<dependency>
@@ -101,7 +101,6 @@
101101
<groupId>javax.enterprise</groupId>
102102
<artifactId>cdi-api</artifactId>
103103
<version>${cdi}</version>
104-
<scope>provided</scope>
105104
<optional>true</optional>
106105
</dependency>
107106

0 commit comments

Comments
 (0)