build: change publication repository

This commit is contained in:
oSumAtrIX 2023-08-11 01:06:20 +02:00
parent 72ffcbbc44
commit b16e1763c0
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

View File

@ -109,14 +109,10 @@ subprojects {
publishing { publishing {
repositories { repositories {
maven { maven {
url = if (suffix.contains("SNAPSHOT")) { url = uri("https://maven.pkg.github.com/revanced/Apktool")
uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
} else {
uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
}
credentials { credentials {
username = (project.properties["ossrhUsername"] ?: "").toString() username = System.getenv("GITHUB_ACTOR") ?: project.findProperty("gpr.user").toString()
password = (project.properties["ossrhPassword"] ?: "").toString() password = System.getenv("GITHUB_TOKEN") ?: project.findProperty("gpr.key").toString()
} }
} }
} }
@ -151,9 +147,9 @@ subprojects {
} }
} }
scm { scm {
connection = "scm:git:git://github.com/iBotPeaches/Apktool.git" connection = "scm:git:git://github.com/revanced/Apktool.git"
developerConnection = "scm:git:git@github.com:iBotPeaches/Apktool.git" developerConnection = "scm:git:git@github.com:revanced/Apktool.git"
url = "https://github.com/iBotPeaches/Apktool" url = "https://github.com/revanced/Apktool"
} }
} }
} }