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
-`com.gradleup.nmcp` creates a `zip${publicationName.capitalized()}Publication` and `publish${publicationName.capitalized()}PublicationToCentralPortal` task for each publication
4
+
-`publish${publicationName.capitalized()}PublicationToCentralPortal` can be used to publish an individual publication to the central portal. If using this, you need to configure the `centralPortal {}` block.
5
+
- The output of `zip${publicationName.capitalized()}Publication` is registered as an outgoing artifact so that the aggregation plugin can collect the files from all projects.
6
+
-`com.gradleup.nmcp.aggregation` can aggregate all zips from several projects and upload them in a single deployment to the central portal.
7
+
8
+
## Other changes:
9
+
10
+
- The default `publicationType` is now `"AUTOMATIC"`, make sure to set it to `"USER_MANAGED"` if you want to manually confirm releases.
11
+
-`NmcpSpec.endpoint` is replaced by `NmcpSpec.baseUrl`.
12
+
-`NmcpSpec.publicationType` is renamed `NmcpSpec.publishingType`.
Then call `publishAllPublicationsToCentralPortal` to publish all your publications:
41
+
Call `publishAggregationCentralPortal` to publish the aggregation:
39
42
40
43
```
41
-
./gradlew publishAllPublicationsToCentralPortal
44
+
./gradlew publishAggregationCentralPortal
42
45
# yay everything is uploaded 🎉
43
46
# go to https://central.sonatype.com/ to release if you used USER_MANAGED
44
47
```
45
48
46
49
# Project isolation compatible version:
47
50
48
-
`publishAllProjectsProbablyBreakingProjectIsolation` uses the `allprojects {}` block and might be incompatible with [Project-isolation](https://gradle.github.io/configuration-cache/).
51
+
`publishAllProjectsProbablyBreakingProjectIsolation` uses the `allprojects {}` block and is incompatible with [Project-isolation](https://gradle.github.io/configuration-cache/).
49
52
50
53
You can be 100% compatible by adding the plugin to each module you want to publish:
51
54
@@ -54,22 +57,18 @@ You can be 100% compatible by adding the plugin to each module you want to publi
0 commit comments