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
Uses the new Maven Central Portal API at `central.sonatype.com`. This is the current recommended method as Sonatype has deprecated the legacy OSSRH system.
111
+
112
+
Uses the new Maven Central Portal API at `central.sonatype.com`. This is the current recommended method as Sonatype has
113
+
deprecated the legacy OSSRH system.
96
114
97
115
### S01 (Legacy OSSRH)
116
+
98
117
```groovy
99
118
publishToMavenCentral(SonatypeHost.S01)
100
119
```
120
+
101
121
Uses the legacy Sonatype OSSRH at `s01.oss.sonatype.org`. This method is deprecated and may stop working.
102
122
103
123
### DEFAULT (Legacy OSSRH)
124
+
104
125
```groovy
105
126
publishToMavenCentral(SonatypeHost.DEFAULT)
106
127
```
128
+
107
129
Uses the original Sonatype OSSRH at `oss.sonatype.org`. This is for older projects and is deprecated.
108
130
109
131
## Gradle Tasks
110
132
111
-
| Task | Description |
112
-
|------|-------------|
113
-
|`publishToMavenLocal`| Publish to local Maven cache (~/.m2) |
114
-
|`publishToMavenCentral`| Upload to Central Portal (staging) |
115
-
|`publishAndReleaseToMavenCentral`| Upload and release to Maven Central |
116
-
|`publish`| Publish to all configured repositories (GitHub Packages) |
0 commit comments