96 lines
2.6 KiB
Plaintext
96 lines
2.6 KiB
Plaintext
plugins {
|
|
id("com.android.library")
|
|
id("maven-publish")
|
|
id("signing")
|
|
}
|
|
|
|
android {
|
|
namespace = "io.github.libxposed.service"
|
|
compileSdk = 34
|
|
buildToolsVersion = "34.0.0"
|
|
|
|
defaultConfig {
|
|
minSdk = 24
|
|
}
|
|
|
|
buildFeatures {
|
|
buildConfig = false
|
|
resValues = false
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_21
|
|
targetCompatibility = JavaVersion.VERSION_21
|
|
}
|
|
|
|
publishing {
|
|
singleVariant("release") {
|
|
withSourcesJar()
|
|
withJavadocJar()
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation(project(":interface"))
|
|
compileOnly("androidx.annotation:annotation:1.7.1")
|
|
}
|
|
|
|
publishing {
|
|
publications {
|
|
register<MavenPublication>("service") {
|
|
artifactId = "service"
|
|
group = "io.github.libxposed"
|
|
version = "100-1.0.0"
|
|
pom {
|
|
name.set("service")
|
|
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/service/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/service")
|
|
}
|
|
}
|
|
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.isNullOrBlank() && !signingPassword.isNullOrBlank()) {
|
|
useInMemoryPgpKeys(signingKey, signingPassword)
|
|
sign(publishing.publications)
|
|
}
|
|
}
|