You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,11 +3,16 @@
3
3
## 0.30.0 - Unreleased
4
4
5
5
- Replace from old unsupported HTTP Builder to OkHttp 4 - [#188](https://github.com/Codearte/gradle-nexus-staging-plugin/pull/188) - PR by [anuraaga](https://github.com/anuraaga)
6
+
-**Switch project development to maintenance mode** - see below
6
7
- Switch build to Gradle 6.8.3
7
8
- Remove deprecated since 0.8.0 `promoteRepository` and `closeAndPromoteRepository` tasks
8
9
9
10
**Backward compatibility note**. Due to the internal HTTP client library change, the plugin might start behaving slightly different in certain situations.
10
11
12
+
**PROJECT DEVELOPMENT SWITCHED TO THE MAINTENANCE MODE**. To make releasing to Maven Central even easier, I and Marc Phillip (the author of nexus-publish-plugin) combined forces to create a next generation, unified 2-in-1 plugin - [gradle-nexus-publish-plugin](https://github.com/gradle-nexus/publish-plugin/). It is a recommended solution, as our development effort will be put in that new plugin. See my [blog post](https://blog.solidsoft.pl/2021/02/26/unified-gradle-projects-releasing-to-maven-central-in-2021-migration-guide/) and the official [migration guide](https://github.com/gradle-nexus/publish-plugin/wiki/Migration-from-gradle_nexus_staging-plugin---nexus_publish-plugin-duo).
13
+
14
+
Thank you for over 5 years of releasing with my plugin!
15
+
11
16
## 0.22.0 - 2020-08-17
12
17
13
18
- Change default retrying time to 5 minutes - a value recommended by Sonatype (suggestion by [Mikhail Yakushin](https://github.com/driver733))
Copy file name to clipboardExpand all lines: README.md
+30-24Lines changed: 30 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,12 @@ A gradle plugin providing tasks to close and promote/release staged repositories
8
8
[Sonatype OSSRH](http://central.sonatype.org/pages/ossrh-guide.html) (Open Source Software Repository Hosting) without the need to use Nexus GUI (to close and release
9
9
artifacts/repository).
10
10
11
+
## MAINTENANCE MODE
12
+
13
+
**IMPORTANT. To make releasing to Maven Central even easier, I and Marc Phillip (the author of nexus-publish-plugin) combined forces to create a next generation, unified, 2-in-1 plugin - [gradle-nexus-publish-plugin](https://github.com/gradle-nexus/publish-plugin/). It is a recommended solution, as our development effort will be put in that new plugin. See my [blog post](https://blog.solidsoft.pl/2021/02/26/unified-gradle-projects-releasing-to-maven-central-in-2021-migration-guide/) and the official [migration guide](https://github.com/gradle-nexus/publish-plugin/wiki/Migration-from-gradle_nexus_staging-plugin---nexus_publish-plugin-duo).**
14
+
15
+
Thank you for over 5 years of releasing with my plugin!
16
+
11
17
## Quick start
12
18
13
19
Add gradle-nexus-staging-plugin to the `buildscript` dependencies in your build.gradle file for root project:
@@ -34,8 +40,8 @@ Configure it:
34
40
stagingProfileId = "yourStagingProfileId" //when not defined will be got from server using "packageGroup"
35
41
}
36
42
37
-
After successful archives upload (with [`maven`](https://gradle.org/docs/current/userguide/maven_plugin.html),
38
-
[`maven-publish`](https://gradle.org/docs/current/userguide/publishing_maven.html) or
43
+
After successful archives upload (with [`maven`](https://gradle.org/docs/current/userguide/maven_plugin.html),
44
+
[`maven-publish`](https://gradle.org/docs/current/userguide/publishing_maven.html) or
39
45
[`nexus`](https://github.com/bmuschko/gradle-nexus-plugin/) plugin) to Sonatype OSSRH call:
40
46
41
47
./gradlew closeAndReleaseRepository
@@ -69,7 +75,7 @@ The plugin provides three main tasks:
69
75
profile (possible old/broken repositories can be dropped with Nexus GUI)
70
76
-`releaseRepository` - releases a closed repository (required to put artifacts to Maven Central aka The Central Repository)
71
77
-`closeAndReleaseRepository` - closes and releases a repository (an equivalent to `closeRepository releaseRepository`)
72
-
78
+
73
79
And one additional:
74
80
75
81
-`getStagingProfile` - gets and displays a staging profile id for a given package group. This is a diagnostic task to get the value and put it
@@ -98,7 +104,7 @@ one additional request is send to the Nexus server to determine the value using
98
104
-`repositoryDescription` (optional) - staging repository description in close/release operations (see [#63](https://github.com/Codearte/gradle-nexus-staging-plugin/pull/63) for more information)
99
105
-`stagingRepositoryId` (optional, since 0.20.0) - the explicitly created staging repository with artifacts to improve build reliability -
100
106
requires external mechanism (e.g. [nexus-publish-plugin](https://github.com/marcphilipp/nexus-publish-plugin/)) to enhance a Gradle task
101
-
to use it for uploading/publishing artifacts (see [#77](https://github.com/Codearte/gradle-nexus-staging-plugin/issues/77))
107
+
to use it for uploading/publishing artifacts (see [#77](https://github.com/Codearte/gradle-nexus-staging-plugin/issues/77))
102
108
103
109
For the sensible configuration example see the plugin's own release [configuration](gradle/cdeliveryboy-release.gradle).
104
110
@@ -125,8 +131,8 @@ drop them suing the UI and try again. This is quite common during the initial ex
125
131
2. It takes some time to close and/or promote a staging repository in Nexus, especially with multiple artifacts. The plugin has a built-in retry
126
132
mechanism, however, the default value can be too [low](https://github.com/Codearte/gradle-nexus-staging-plugin/issues/12), especially for
127
133
the multiproject build. To confirm that enable logging at the info level in Gradle (using the `--info` or `-i` build parameter). You should see log
128
-
messages similar to `Attempt 8/8 failed.`. If yes, increase the timeout using the `numberOfRetries` or `delayBetweenRetriesInMillis` configuration
129
-
parameters.
134
+
messages similar to `Attempt 8/8 failed.`. If yes, increase the timeout using the `numberOfRetries` or `delayBetweenRetriesInMillis` configuration
135
+
parameters.
130
136
131
137
3. An another reason to get the aforementioned error is releasing more than one project using the same Nexus staging repository simultaneously
132
138
(usually automatically from a Continuous Delivery pipeline from a Continuous Integration server). Unfortunately Gradle does not provide a mechanism
@@ -138,7 +144,7 @@ situation.
138
144
4. You are releasing from Travis. See the next point.
139
145
140
146
### 2. Why my release build on Travis suddenly started to fail with `wrong number of received repositories...`'?
141
-
147
+
142
148
If your Travis build started to fail around autumn 2018 it's probably a problem reported in [#76](https://github.com/Codearte/gradle-nexus-staging-plugin/issues/76).
143
149
To cut a long story short:
144
150
- Gradle does [not support](https://github.com/gradle/gradle/issues/5711) uploading/publishing to explicitly created staging repositories in Nexus
@@ -163,35 +169,35 @@ by nexus-publish-plugin (only `publish...` from `maven-publish`).
163
169
The plugin is used by [hundreds of projects](https://github.com/search?q=io.codearte.nexus-staging&type=Code&utf8=%E2%9C%93) around the web.
164
170
165
171
Just to mention a few FOSS projects which leverage the plugin to automatize releasing and Continuous Delivery:
0 commit comments