Add publish
This commit is contained in:
parent
407c483fe9
commit
542f5dd67d
|
|
@ -0,0 +1,92 @@
|
|||
plugins {
|
||||
id("com.android.library")
|
||||
id("maven-publish")
|
||||
id("signing")
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "io.github.libxposed.service"
|
||||
compileSdk = 33
|
||||
buildToolsVersion = "33.0.1"
|
||||
|
||||
defaultConfig {
|
||||
minSdk = 21
|
||||
targetSdk = 33
|
||||
}
|
||||
|
||||
buildFeatures {
|
||||
androidResources = false
|
||||
buildConfig = false
|
||||
}
|
||||
|
||||
compileOptions {
|
||||
targetCompatibility = JavaVersion.VERSION_1_7
|
||||
sourceCompatibility = JavaVersion.VERSION_1_7
|
||||
}
|
||||
|
||||
publishing {
|
||||
singleVariant("release") {
|
||||
withSourcesJar()
|
||||
withJavadocJar()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
publishing {
|
||||
publications {
|
||||
register<MavenPublication>("interface") {
|
||||
artifactId = "service-interface"
|
||||
group = "io.github.libxposed"
|
||||
version = "100"
|
||||
pom {
|
||||
name.set("service-interface")
|
||||
description.set("Modern Xposed Service Interface")
|
||||
url.set("https://github.com/libxposed/service")
|
||||
licenses {
|
||||
license {
|
||||
name.set("Apache License 2.0")
|
||||
url.set("https://github.com/libxposed/api/blob/master/LICENSE")
|
||||
}
|
||||
}
|
||||
developers {
|
||||
developer {
|
||||
name.set("libxposed")
|
||||
url.set("https://libxposed.github.io")
|
||||
}
|
||||
}
|
||||
scm {
|
||||
connection.set("scm:git:https://github.com/libxposed/service.git")
|
||||
url.set("https://github.com/libxposed/api")
|
||||
}
|
||||
}
|
||||
afterEvaluate {
|
||||
from(components.getByName("release"))
|
||||
}
|
||||
}
|
||||
}
|
||||
repositories {
|
||||
maven {
|
||||
name = "ossrh"
|
||||
url = uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
|
||||
credentials(PasswordCredentials::class)
|
||||
}
|
||||
maven {
|
||||
name = "GitHubPackages"
|
||||
url = uri("https://maven.pkg.github.com/libxposed/service")
|
||||
credentials {
|
||||
username = System.getenv("GITHUB_ACTOR")
|
||||
password = System.getenv("GITHUB_TOKEN")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
signing {
|
||||
val signingKey = findProperty("signingKey") as String?
|
||||
val signingPassword = findProperty("signingPassword") as String?
|
||||
if (signingKey != null && signingPassword != null) {
|
||||
useInMemoryPgpKeys(signingKey, signingPassword)
|
||||
}
|
||||
sign(publishing.publications)
|
||||
}
|
||||
|
||||
|
|
@ -1,25 +0,0 @@
|
|||
plugins {
|
||||
id("com.android.library")
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "io.github.libxposed.service"
|
||||
compileSdk = 33
|
||||
buildToolsVersion = "33.0.1"
|
||||
|
||||
defaultConfig {
|
||||
minSdk = 21
|
||||
targetSdk = 33
|
||||
consumerProguardFiles("proguard-rules.pro")
|
||||
}
|
||||
|
||||
buildFeatures {
|
||||
androidResources = false
|
||||
buildConfig = false
|
||||
}
|
||||
|
||||
compileOptions {
|
||||
targetCompatibility = JavaVersion.VERSION_1_8
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
}
|
||||
}
|
||||
|
|
@ -1 +0,0 @@
|
|||
-keep class io.github.libxposed.** { *; }
|
||||
|
|
@ -19,4 +19,4 @@ dependencyResolutionManagement {
|
|||
|
||||
rootProject.name = "libxposed"
|
||||
|
||||
include(":service-interface")
|
||||
include(":interface")
|
||||
|
|
|
|||
Loading…
Reference in New Issue