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
#yay everything is uploaded to "https://central.sonatype.com/repository/maven-snapshots/" 🎉
72
+
./gradlew publishAggregationToCentralSnapshots
73
+
#Your snapshots are uploaded to "https://central.sonatype.com/repository/maven-snapshots/"
76
74
```
77
75
78
76
Under the hood, the `com.gradle.nmcp.settings` plugin applies the `com.gradleup.nmcp` plugin to all your projects and `com.gradleup.nmcp.aggregation` to your root project.
For simple projects, the [settings plugin](/nmcp) is recommended.
7
+
For simple projects, the [settings plugin](/nmcp#configuring-the-settings-plugin) is recommended.
8
8
9
9
For more control, you can configure the `com.gradleup.nmcp.aggregation` and `com.gradleup.nmcp` plugins manually as described in this page.
10
10
@@ -60,7 +60,7 @@ nmcpAggregation {
60
60
61
61
```
62
62
63
-
_Note that you may also apply both `com.gradleup.nmcp.aggregation` and `com.gradleup.nmcp` in the same project._
63
+
_Note that you may apply both `com.gradleup.nmcp.aggregation` and `com.gradleup.nmcp` in the same project._
64
64
65
65
For the aggregation to find the outgoing variant, you need to add the `nmcpAggregation` dependency for each project that you want to publish:
66
66
@@ -74,18 +74,17 @@ dependencies {
74
74
}
75
75
```
76
76
77
-
`com.gradleup.nmcp.aggregation` uses a lenient configuration to collect all the project. You may declare a dependency on all projects and the ones that do not apply `com.gradleup.nmcp`_should_ be ignored:
77
+
`com.gradleup.nmcp.aggregation` uses a lenient configuration to collect files. You may add all projects and projects that do not apply `com.gradleup.nmcp`are ignored:
78
78
79
79
```kotlin
80
80
// build.gradle.kts
81
81
dependencies {
82
82
/**
83
-
* You may also do this
83
+
* Add all projects to the `nmcpAggregation` dependency. Projets that do not
84
+
* apply `com.gradleup.nmcp` are ignored.
84
85
*
85
-
* This is a bit more dangerous as it relies on the fact that
86
-
* the resolution is lenient.
87
-
* If you find unexpected content in your publications or bump
88
-
* into resolution errors, list all projects explicitly.
86
+
* Note: if you are using isolated projects, this potentially "over" configures
87
+
* your build by configuring projects that are not important for publishing.
89
88
*/
90
89
allprojects {
91
90
nmcpAggregation(project(path))
@@ -101,9 +100,9 @@ Call `publishAggregationToCentralPortal` to publish the aggregation:
101
100
# go to https://central.sonatype.com/ to release if you used USER_MANAGED
102
101
```
103
102
104
-
Call `publishAggregationToCentralPortalSnapshots` to publish to the snapshots:
103
+
Call `publishAggregationToCentralSnapshots` to publish to the snapshots:
0 commit comments