Fix publish

This commit is contained in:
LoveSy 2023-01-10 22:30:00 +08:00
parent 6fc1fe6ccd
commit d5a3364c6d
No known key found for this signature in database
1 changed files with 12 additions and 5 deletions

View File

@ -24,11 +24,19 @@ android {
targetCompatibility = JavaVersion.VERSION_1_7
sourceCompatibility = JavaVersion.VERSION_1_7
}
publishing {
singleVariant("release") {
withSourcesJar()
withJavadocJar()
}
}
}
publishing {
publications {
fun MavenPublication.setup() {
register<MavenPublication>("api") {
artifactId = "api"
group = "io.github.libxposed"
version = "100"
pom {
@ -52,10 +60,9 @@ publishing {
url.set("https://github.com/libxposed/api")
}
}
}
register<MavenPublication>("api") {
artifactId = "api"
setup()
afterEvaluate {
from(components.getByName("release"))
}
}
}
repositories {