Skip to content

Commit

Permalink
Publish milestones to Maven Central
Browse files Browse the repository at this point in the history
Closes gh-339
  • Loading branch information
jonatan-ivanov committed Feb 5, 2025
1 parent 61b237a commit a62426a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 33 deletions.
15 changes: 2 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ dependencies {

## Milestone releases

Milestone releases are published to https://repo.spring.io/milestone. Include that as a maven repository in your build
configuration to use milestone releases. Note that milestone releases are for testing purposes and are not intended for
production use.
Starting with the 1.1.0-M1 release, milestone releases and release candidates will be published to Maven Central. Note that milestone releases are for testing purposes and are not intended for production use. Earlier milestone releases were published to https://repo.spring.io/milestone.

## Documentation

Expand All @@ -44,8 +42,7 @@ Example for a Gradle setup that scans your sources from the root project and cre
repositories {
maven { url 'https://repo.spring.io/snapshot' } // for snapshots
maven { url 'https://repo.spring.io/milestone' } // for milestones
mavenCentral() // for GA
mavenCentral() // for GA and milestones
}
ext {
Expand Down Expand Up @@ -124,14 +121,6 @@ Example for a Maven setup that scans your sources from the root project and crea
<enabled>false</enabled>
</releases>
</repository>
<repository>
<id>spring-milestones</id>
<name>Spring Milestones</name>
<url>https://repo.spring.io/milestone</url> <!-- For Milestones -->
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
```

Expand Down
8 changes: 0 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -228,14 +228,6 @@ subprojects {
password findProperty('SNAPSHOT_REPO_PASSWORD')
}
}
maven {
name = 'Milestone'
url = 'https://repo.spring.io/milestone'
credentials {
username findProperty('MILESTONE_REPO_USER')
password findProperty('MILESTONE_REPO_PASSWORD')
}
}
}
}

Expand Down
3 changes: 1 addition & 2 deletions docs/src/test/resources/docs-generator-build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
// tag::main[]
repositories {
maven { url 'https://repo.spring.io/snapshot' } // for snapshots
maven { url 'https://repo.spring.io/milestone' } // for milestones
mavenCentral() // for GA
mavenCentral() // for GA and milestones
}

ext {
Expand Down
8 changes: 0 additions & 8 deletions docs/src/test/resources/docs-generator-pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,5 @@ limitations under the License.
<enabled>false</enabled>
</releases>
</repository>
<repository>
<id>spring-milestones</id>
<name>Spring Milestones</name>
<url>https://repo.spring.io/milestone</url> <!-- For Milestones -->
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
</project>
4 changes: 2 additions & 2 deletions gradle/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ elif [ $CIRCLE_TAG ]; then
echo -e "Publishing Release => Branch ['$CIRCLE_BRANCH'] Tag ['$CIRCLE_TAG']"
case "$CIRCLE_TAG" in
*-M*)
./gradlew -Prelease.disableGitChecks=true -Prelease.useLastTag=true -Prelease.stage=milestone candidate publishNebulaPublicationToMilestoneRepository $SWITCHES
./gradlew -Prelease.disableGitChecks=true -Prelease.useLastTag=true -Prelease.stage=milestone candidate publishNebulaPublicationToMavenCentralRepository closeAndReleaseMavenCentralStagingRepository $SWITCHES
;;
*-RC*)
# -Prelease.stage=milestone instead of rc (should be rc), probably related to this bug: https://github.com/nebula-plugins/nebula-release-plugin/issues/213
./gradlew -Prelease.disableGitChecks=true -Prelease.useLastTag=true -Prelease.stage=milestone candidate publishNebulaPublicationToMilestoneRepository $SWITCHES
./gradlew -Prelease.disableGitChecks=true -Prelease.useLastTag=true -Prelease.stage=milestone candidate publishNebulaPublicationToMavenCentralRepository closeAndReleaseMavenCentralStagingRepository $SWITCHES
;;
*)
./gradlew -Prelease.disableGitChecks=true -Prelease.useLastTag=true -Prelease.stage=final final publishNebulaPublicationToMavenCentralRepository closeAndReleaseMavenCentralStagingRepository $SWITCHES
Expand Down

0 comments on commit a62426a

Please sign in to comment.