diff --git a/build.gradle b/build.gradle index 571e7ba60d..1b6eccf2d8 100644 --- a/build.gradle +++ b/build.gradle @@ -113,10 +113,6 @@ subprojects { } pluginManager.withPlugin("com.vanniktech.maven.publish") { - mavenPublish { - sonatypeHost = "S01" - } - publishing { repositories { maven { diff --git a/gradle.properties b/gradle.properties index 299f36edd2..7968729263 100644 --- a/gradle.properties +++ b/gradle.properties @@ -13,6 +13,9 @@ POM_LICENCE_DIST=repo POM_DEVELOPER_ID=square POM_DEVELOPER_NAME=Square, Inc. +SONATYPE_HOST=S01 + + # Publishing SHA 256 and 512 hashes of maven-metadata is not supported by Sonatype and Nexus. # See https://github.com/gradle/gradle/issues/11308 and https://issues.sonatype.org/browse/NEXUS-21802 systemProp.org.gradle.internal.publish.checksums.insecure=true