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