Skip to content

Commit 8e85487

Browse files
committed
Start work on Spring Boot 2.4
1 parent a84b7bc commit 8e85487

File tree

8 files changed

+15
-17
lines changed

8 files changed

+15
-17
lines changed

buildSrc/src/main/java/org/springframework/boot/build/artifactory/ArtifactoryRepository.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,11 @@ public static ArtifactoryRepository forProject(Project project) {
4646

4747
private static String determineArtifactoryRepo(Project project) {
4848
String version = project.getVersion().toString();
49-
String type = version.substring(version.lastIndexOf('.') + 1);
50-
if (type.equals("RELEASE")) {
49+
int modifierIndex = version.lastIndexOf('-');
50+
if (modifierIndex == -1) {
5151
return "release";
5252
}
53+
String type = version.substring(modifierIndex + 1);
5354
if (type.startsWith("M") || type.startsWith("RC")) {
5455
return "milestone";
5556
}

buildSrc/src/test/java/org/springframework/boot/build/artifactory/ArtifactoryRepositoryTests.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,28 +32,28 @@ public class ArtifactoryRepositoryTests {
3232
@Test
3333
void whenProjectVersionIsMilestoneThenRepositoryIsMilestone() {
3434
Project project = ProjectBuilder.builder().build();
35-
project.setVersion("1.2.3.M1");
35+
project.setVersion("1.2.3-M1");
3636
assertThat(ArtifactoryRepository.forProject(project).getName()).isEqualTo("milestone");
3737
}
3838

3939
@Test
4040
void whenProjectVersionIsReleaseCandidateThenRepositoryIsMilestone() {
4141
Project project = ProjectBuilder.builder().build();
42-
project.setVersion("1.2.3.RC1");
42+
project.setVersion("1.2.3-RC1");
4343
assertThat(ArtifactoryRepository.forProject(project).getName()).isEqualTo("milestone");
4444
}
4545

4646
@Test
4747
void whenProjectVersionIsReleaseThenRepositoryIsRelease() {
4848
Project project = ProjectBuilder.builder().build();
49-
project.setVersion("1.2.3.RELEASE");
49+
project.setVersion("1.2.3");
5050
assertThat(ArtifactoryRepository.forProject(project).getName()).isEqualTo("release");
5151
}
5252

5353
@Test
54-
void whenProjectVersionIsBuildSnapshotThenRepositoryIsSnapshot() {
54+
void whenProjectVersionIsSnapshotThenRepositoryIsSnapshot() {
5555
Project project = ProjectBuilder.builder().build();
56-
project.setVersion("1.2.3.BUILD-SNAPSHOT");
56+
project.setVersion("1.2.3-SNAPSHOT");
5757
assertThat(ArtifactoryRepository.forProject(project).getName()).isEqualTo("snapshot");
5858
}
5959

ci/README.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The pipeline can be deployed using the following command:
1111

1212
[source]
1313
----
14-
$ fly -t spring-boot set-pipeline -p spring-boot-2.3.x -c ci/pipeline.yml -l ci/parameters.yml
14+
$ fly -t spring-boot set-pipeline -p spring-boot-2.4.x -c ci/pipeline.yml -l ci/parameters.yml
1515
----
1616

1717
NOTE: This assumes that you have credhub integration configured with the appropriate

ci/images/setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ apt-get update
99
apt-get install --no-install-recommends -y ca-certificates net-tools libxml2-utils git curl libudev1 libxml2-utils iptables iproute2 jq
1010
rm -rf /var/lib/apt/lists/*
1111

12-
curl https://raw.githubusercontent.com/spring-io/concourse-java-scripts/v0.0.2/concourse-java.sh > /opt/concourse-java.sh
12+
curl https://raw.githubusercontent.com/spring-io/concourse-java-scripts/v0.0.3/concourse-java.sh > /opt/concourse-java.sh
1313

1414

1515
###########################################################

ci/parameters.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ github-repo-name: "spring-projects/spring-boot"
66
docker-hub-organization: "springci"
77
artifactory-server: "https://repo.spring.io"
88
branch: "master"
9-
milestone: "2.3.x"
9+
milestone: "2.4.x"
1010
build-name: "spring-boot"
1111
pipeline-name: "spring-boot"
1212
concourse-url: "https://ci.spring.io"

ci/pipeline.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,23 +77,23 @@ resources:
7777
repository: ((docker-hub-organization))/spring-boot-ci-image
7878
username: ((docker-hub-username))
7979
password: ((docker-hub-password))
80-
tag: 2.3.x
80+
tag: 2.4.x
8181
- name: spring-boot-jdk11-ci-image
8282
type: docker-image
8383
icon: docker
8484
source:
8585
repository: ((docker-hub-organization))/spring-boot-jdk11-ci-image
8686
username: ((docker-hub-username))
8787
password: ((docker-hub-password))
88-
tag: 2.3.x
88+
tag: 2.4.x
8989
- name: spring-boot-jdk14-ci-image
9090
type: docker-image
9191
icon: docker
9292
source:
9393
repository: ((docker-hub-organization))/spring-boot-jdk14-ci-image
9494
username: ((docker-hub-username))
9595
password: ((docker-hub-password))
96-
tag: 2.3.x
96+
tag: 2.4.x
9797
- name: artifactory-repo
9898
type: artifactory-resource
9999
icon: package-variant

ci/scripts/generate-release-notes.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ set -e
44
version=$( cat version/version )
55

66
milestone=${version}
7-
if [[ $RELEASE_TYPE = "RELEASE" ]]; then
8-
milestone=${version%.RELEASE}
9-
fi
107

118
java -jar /github-release-notes-generator.jar \
129
--releasenotes.github.username=${GITHUB_USERNAME} \

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version=2.3.1.BUILD-SNAPSHOT
1+
version=2.4.0-SNAPSHOT
22

33
org.gradle.caching=true
44
org.gradle.parallel=true

0 commit comments

Comments
 (0)