mirror of
https://github.com/revanced/multidexlib2.git
synced 2025-04-30 06:34:31 +02:00
build: change publication repository
This commit is contained in:
parent
b7e693e766
commit
f718380032
@ -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 {
|
||||||
|
@ -37,17 +37,11 @@ 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
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user