build: change publication repository

This commit is contained in:
oSumAtrIX 2023-08-11 02:03:41 +02:00
parent b7e693e766
commit f718380032
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4
2 changed files with 5 additions and 13 deletions

View File

@ -42,7 +42,7 @@ apply from: 'configure-publishing.gradle'
publishing { publishing {
publications { publications {
multidexlib2(MavenPublication) { gpr(MavenPublication) {
artifactId = mainArtifact artifactId = mainArtifact
from components.java from components.java
pom { pom {

View File

@ -37,19 +37,13 @@ ext.configurePom = { pom ->
publishing { publishing {
repositories { repositories {
maven { maven {
name = 'local' name = "GitHubPackages"
url = rootProject.layout.buildDirectory.dir('repository') url = uri("https://maven.pkg.github.com/revanced/multidexlib2")
}
if (project.hasProperty('publishing.url')) {
maven {
name = 'remote'
url = project.getProperty('publishing.url')
credentials { credentials {
username = project.getProperty('publishing.username') username = project.findProperty("gpr.user") ?: System.getenv("USERNAME")
password = project.getProperty('publishing.password') password = project.findProperty("gpr.key") ?: System.getenv("TOKEN")
} }
} }
}
} }
} }
@ -58,5 +52,3 @@ signing {
sign publishing.publications sign publishing.publications
} }
} }
assemble.dependsOn publishAllPublicationsToLocalRepository