mirror of
https://github.com/revanced/multidexlib2.git
synced 2025-04-29 22:24:28 +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 {
|
||||
publications {
|
||||
multidexlib2(MavenPublication) {
|
||||
gpr(MavenPublication) {
|
||||
artifactId = mainArtifact
|
||||
from components.java
|
||||
pom {
|
||||
|
@ -37,19 +37,13 @@ ext.configurePom = { pom ->
|
||||
publishing {
|
||||
repositories {
|
||||
maven {
|
||||
name = 'local'
|
||||
url = rootProject.layout.buildDirectory.dir('repository')
|
||||
}
|
||||
if (project.hasProperty('publishing.url')) {
|
||||
maven {
|
||||
name = 'remote'
|
||||
url = project.getProperty('publishing.url')
|
||||
name = "GitHubPackages"
|
||||
url = uri("https://maven.pkg.github.com/revanced/multidexlib2")
|
||||
credentials {
|
||||
username = project.getProperty('publishing.username')
|
||||
password = project.getProperty('publishing.password')
|
||||
username = project.findProperty("gpr.user") ?: System.getenv("USERNAME")
|
||||
password = project.findProperty("gpr.key") ?: System.getenv("TOKEN")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -58,5 +52,3 @@ signing {
|
||||
sign publishing.publications
|
||||
}
|
||||
}
|
||||
|
||||
assemble.dependsOn publishAllPublicationsToLocalRepository
|
||||
|
Loading…
x
Reference in New Issue
Block a user