2121
22221 . Upload the kotlin artifacts:
2323 ``` bash
24- ./gradlew clean build && ./gradlew uploadArchives --no-parallel
24+ ./gradlew clean build && ./gradlew publish --no-parallel
2525 ```
2626
2727 Disabling parallelism and daemon sharing is required by the vanniktech maven publish plugin.
2828 Without those, the artifacts will be split across multiple (invalid) staging repositories.
29- (Note that ` uploadArchives ` is deprecated in favor of ` publish ` , but ` publish ` makes bad artifacts.)
3029
31- 1 . Close and release the staging repository at https://oss.sonatype.org/#stagingRepositories .
30+ 1 . Close and release the staging repository at https://s01. oss.sonatype.org/#stagingRepositories .
3231
33321 . Bump the version
3433 - ** Kotlin:** Update the ` VERSION_NAME ` property in ` gradle.properties ` to the new
@@ -111,12 +110,11 @@ To build and install the current version to your local Maven repository (`~/.m2`
111110
112111#### Configuration
113112
114- In order to deploy artifacts to a Maven repository, you'll need to set 4 properties in your private
115- Gradle properties file (` ~/.gradle/gradle.properties ` ):
113+ In order to deploy artifacts to a Maven repository, you'll need to set these two properties
114+ in your private Gradle properties file (` ~/.gradle/gradle.properties ` ), to provide your
115+ credentials for ` s01.oss.sonatype.org ` .
116116
117117```
118- RELEASE_REPOSITORY_URL=<url of release repository>
119- SNAPSHOT_REPOSITORY_URL=<url of snapshot repository
120118mavenCentralUsername=<username>
121119mavenCentralPassword=<password>
122120```
@@ -127,8 +125,8 @@ Double-check that `gradle.properties` correctly contains the `-SNAPSHOT` suffix,
127125snapshot artifacts to Sonatype just like you would for a production release:
128126
129127``` bash
130- ./gradlew clean build && ./gradlew uploadArchives --no-parallel
128+ ./gradlew clean build && ./gradlew publish --no-parallel
131129```
132130
133131You can verify the artifacts are available by visiting
134- https://oss.sonatype.org/content/repositories/snapshots/com/squareup/workflow / .
132+ https://s01. oss.sonatype.org/content/repositories/snapshots/com/squareup/workflow1 / .
0 commit comments