diff --git a/build.gradle b/build.gradle index bc221aba..cbcd2a26 100644 --- a/build.gradle +++ b/build.gradle @@ -97,16 +97,6 @@ allprojects { url = "${rootProject.buildDir}/local-staging-repo" } } - repositories { - maven { - name = "Snapshots" // optional target repository name - url = "https://aws.oss.sonatype.org/content/repositories/snapshots" - credentials { - username "$System.env.SONATYPE_USERNAME" - password "$System.env.SONATYPE_PASSWORD" - } - } - } publications { // add license information to generated poms all { @@ -138,6 +128,16 @@ publishing { } } } + repositories { + maven { + name = "Snapshots" // optional target repository name + url = "https://aws.oss.sonatype.org/content/repositories/snapshots" + credentials { + username "$System.env.SONATYPE_USERNAME" + password "$System.env.SONATYPE_PASSWORD" + } + } + } } repositories {