Skip to content

Commit 878f992

Browse files
committed
Moves us to s01.oss.sonatype.org
Fixes #615.
1 parent a80f9a0 commit 878f992

File tree

4 files changed

+18
-14
lines changed

4 files changed

+18
-14
lines changed

.buildscript/configure-maven-publish.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@ apply plugin: 'com.vanniktech.maven.publish'
22

33
group = GROUP
44
version = VERSION_NAME
5+
6+
mavenPublish {
7+
sonatypeHost = "S01"
8+
}

RELEASING.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,13 @@
2121

2222
1. 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

3332
1. 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
120118
mavenCentralUsername=<username>
121119
mavenCentralPassword=<password>
122120
```
@@ -127,8 +125,8 @@ Double-check that `gradle.properties` correctly contains the `-SNAPSHOT` suffix,
127125
snapshot 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

133131
You 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/.

buildSrc/src/main/java/Dependencies.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ object Dependencies {
108108
const val generator = "org.openjdk.jmh:jmh-generator-annprocess:1.32"
109109
}
110110

111-
const val mavenPublish = "com.vanniktech:gradle-maven-publish-plugin:0.16.0"
111+
const val mavenPublish = "com.vanniktech:gradle-maven-publish-plugin:0.18.0"
112112
const val ktlint = "org.jlleitschuh.gradle:ktlint-gradle:10.1.0"
113113
const val lanterna = "com.googlecode.lanterna:lanterna:3.1.1"
114114
const val okio = "com.squareup.okio:okio:2.10.0"

gradle.properties

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,18 @@ systemProp.org.gradle.internal.publish.checksums.insecure=true
1010
GROUP=com.squareup.workflow1
1111
VERSION_NAME=1.4.0-SNAPSHOT
1212

13-
POM_DESCRIPTION=Reactive workflows
13+
POM_DESCRIPTION=Square Workflow
1414

1515
POM_URL=https://github.com/square/workflow/
1616
POM_SCM_URL=https://github.com/square/workflow/
1717
POM_SCM_CONNECTION=scm:git:git://github.com/square/workflow.git
1818
POM_SCM_DEV_CONNECTION=scm:git:ssh://[email protected]/square/workflow.git
1919

20-
POM_LICENCE_NAME=The Apache Software License, Version 2.0
21-
POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt
22-
POM_LICENCE_DIST=repo
20+
POM_LICENSE_NAME=The Apache Software License, Version 2.0
21+
POM_LICENSE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt
22+
POM_LICENSE_DIST=repo
2323

2424
POM_DEVELOPER_ID=square
2525
POM_DEVELOPER_NAME=Square, Inc.
26+
POM_DEVELOPER_URL=https://github.com/square/
27+
SONATYPE_STAGING_PROFILE=com.squareup

0 commit comments

Comments
 (0)