Fix publish
This commit is contained in:
parent
6fc1fe6ccd
commit
d5a3364c6d
|
|
@ -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 {
|
||||||
|
from(components.getByName("release"))
|
||||||
}
|
}
|
||||||
register<MavenPublication>("api") {
|
|
||||||
artifactId = "api"
|
|
||||||
setup()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
repositories {
|
repositories {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue