chrisbanes / gradle-mvn-push

Helper to upload Gradle Android Artifacts to Maven repositories
Apache License 2.0
1.05k stars 283 forks source link

Maven Central's staging server is from oss.sonatype.org to s01.oss.sonatype.org #68

Open kongpf8848 opened 3 years ago

kongpf8848 commented 3 years ago

from Central Repository Changelog,Maven Central's staging server is from oss.sonatype.org to s01.oss.sonatype.org, so in getReleaseRepositoryUrl and getSnapshotRepositoryUrl method default url should update string oss.sonatype.org -> s01.oss.sonatype.org

def getReleaseRepositoryUrl() {
    return hasProperty('RELEASE_REPOSITORY_URL') ? RELEASE_REPOSITORY_URL
            : "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
}
def getSnapshotRepositoryUrl() {
    return hasProperty('SNAPSHOT_REPOSITORY_URL') ? SNAPSHOT_REPOSITORY_URL
            : "https://oss.sonatype.org/content/repositories/snapshots/"
}