Skip to content

Commit 88b222b

Browse files
committedFeb 5, 2025
Publish milestones to Maven Central
Closes gh-956
1 parent 7287d62 commit 88b222b

File tree

5 files changed

+5
-23
lines changed

5 files changed

+5
-23
lines changed
 

‎README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,8 @@ dependencies {
3030

3131
## Milestone releases
3232

33-
Milestone releases are published to https://repo.spring.io/milestone. Include that as a maven repository in your build
34-
configuration to use milestone releases. Note that milestone releases are for testing purposes and are not intended for
35-
production use.
33+
Starting with the 1.5.0-M2 release, milestone releases and release candidates will be published to Maven Central.
34+
Note that milestone releases are for testing purposes and are not intended for production use.
3635

3736
## Documentation
3837

‎build.gradle

-8
Original file line numberDiff line numberDiff line change
@@ -242,14 +242,6 @@ subprojects {
242242
password findProperty('SNAPSHOT_REPO_PASSWORD')
243243
}
244244
}
245-
maven {
246-
name = 'Milestone'
247-
url = 'https://repo.spring.io/milestone'
248-
credentials {
249-
username findProperty('MILESTONE_REPO_USER')
250-
password findProperty('MILESTONE_REPO_PASSWORD')
251-
}
252-
}
253245
}
254246
}
255247

‎docs/src/test/resources/docs-generator-build.gradle

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
// tag::main[]
1717
repositories {
1818
maven { url 'https://repo.spring.io/snapshot' } // for snapshots
19-
maven { url 'https://repo.spring.io/milestone' } // for milestones
20-
mavenCentral() // for GA
19+
mavenCentral() // for GA and milestones
2120
}
2221

2322
ext {

‎docs/src/test/resources/docs-generator-pom.xml

-8
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,5 @@
7676
<enabled>false</enabled>
7777
</releases>
7878
</repository>
79-
<repository>
80-
<id>spring-milestones</id>
81-
<name>Spring Milestones</name>
82-
<url>https://repo.spring.io/milestone</url> <!-- For Milestones -->
83-
<snapshots>
84-
<enabled>false</enabled>
85-
</snapshots>
86-
</repository>
8779
</repositories>
8880
</project>

‎gradle/deploy.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ elif [ $CIRCLE_TAG ]; then
1414
echo -e "Publishing Release => Branch ['$CIRCLE_BRANCH'] Tag ['$CIRCLE_TAG']"
1515
case "$CIRCLE_TAG" in
1616
*-M*)
17-
./gradlew -Prelease.disableGitChecks=true -Prelease.useLastTag=true -Prelease.stage=milestone candidate publishNebulaPublicationToMilestoneRepository $SWITCHES
17+
./gradlew -Prelease.disableGitChecks=true -Prelease.useLastTag=true -Prelease.stage=milestone candidate publishNebulaPublicationToMavenCentralRepository closeAndReleaseMavenCentralStagingRepository $SWITCHES
1818
;;
1919
*-RC*)
2020
# -Prelease.stage=milestone instead of rc (should be rc), probably related to this bug: https://github.com/nebula-plugins/nebula-release-plugin/issues/213
21-
./gradlew -Prelease.disableGitChecks=true -Prelease.useLastTag=true -Prelease.stage=milestone candidate publishNebulaPublicationToMilestoneRepository $SWITCHES
21+
./gradlew -Prelease.disableGitChecks=true -Prelease.useLastTag=true -Prelease.stage=milestone candidate publishNebulaPublicationToMavenCentralRepository closeAndReleaseMavenCentralStagingRepository $SWITCHES
2222
;;
2323
*)
2424
./gradlew -Prelease.disableGitChecks=true -Prelease.useLastTag=true -Prelease.stage=final final publishNebulaPublicationToMavenCentralRepository closeAndReleaseMavenCentralStagingRepository $SWITCHES

0 commit comments

Comments
 (0)