Skip to content

Commit 2892151

Browse files
Publish milestones to Maven Central
Closes micrometer-metricsgh-5891
1 parent 4857178 commit 2892151

File tree

6 files changed

+5
-23
lines changed

6 files changed

+5
-23
lines changed

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ dependencies {
3939

4040
## Milestone releases
4141

42-
Starting with the 1.15.0-M2 release, milestone releases and release candidates will be publish to Maven Central.
42+
Starting with the 1.15.0-M2 release, milestone releases and release candidates will be published to Maven Central.
4343
Note that milestone releases are for testing purposes and are not intended for production use.
4444

4545
## Documentation

Diff for: build.gradle

-8
Original file line numberDiff line numberDiff line change
@@ -262,14 +262,6 @@ subprojects {
262262
password findProperty('SNAPSHOT_REPO_PASSWORD')
263263
}
264264
}
265-
maven {
266-
name = 'Milestone'
267-
url = 'https://repo.spring.io/milestone'
268-
credentials {
269-
username findProperty('MILESTONE_REPO_USER')
270-
password findProperty('MILESTONE_REPO_PASSWORD')
271-
}
272-
}
273265
}
274266
}
275267

Diff for: docs/modules/ROOT/pages/installing.adoc

+1-2
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,5 @@ Every successful https://app.circleci.com/pipelines/github/micrometer-metrics/mi
7070
== Milestones
7171

7272
Milestone releases are made available for early testing purposes and are not intended for production use.
73-
Milestone releases are published to https://repo.spring.io/milestone.
74-
To use milestone releases, include that as a Maven repository in your build configuration.
73+
Milestone releases are published to Maven Central.
7574
Milestones are marked as "`pre-releases`" on GitHub, and the version has a suffix, such as `-M1` or `-RC1` (milestone 1 or release candidate 1, respectively).

Diff for: 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 {

Diff for: docs/src/test/resources/docs-generator-pom.xml

-8
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,5 @@
7878
<enabled>false</enabled>
7979
</releases>
8080
</repository>
81-
<repository>
82-
<id>spring-milestones</id>
83-
<name>Spring Milestones</name>
84-
<url>https://repo.spring.io/milestone</url> <!-- For Milestones -->
85-
<snapshots>
86-
<enabled>false</enabled>
87-
</snapshots>
88-
</repository>
8981
</repositories>
9082
</project>

Diff for: 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)