mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-05 18:25:28 +08:00
...
This commit is contained in:
@@ -2,6 +2,8 @@ plugins {
|
|||||||
id 'java-library'
|
id 'java-library'
|
||||||
id 'org.jetbrains.kotlin.jvm'
|
id 'org.jetbrains.kotlin.jvm'
|
||||||
id 'com.google.devtools.ksp' version '1.6.10-1.0.2'
|
id 'com.google.devtools.ksp' version '1.6.10-1.0.2'
|
||||||
|
id 'maven-publish'
|
||||||
|
id 'signing'
|
||||||
}
|
}
|
||||||
|
|
||||||
java {
|
java {
|
||||||
@@ -15,4 +17,54 @@ dependencies {
|
|||||||
implementation 'com.google.auto.service:auto-service-annotations:1.0.1'
|
implementation 'com.google.auto.service:auto-service-annotations:1.0.1'
|
||||||
compileOnly 'com.google.devtools.ksp:symbol-processing-api:1.6.10-1.0.2'
|
compileOnly 'com.google.devtools.ksp:symbol-processing-api:1.6.10-1.0.2'
|
||||||
ksp 'dev.zacsweers.autoservice:auto-service-ksp:1.0.0'
|
ksp 'dev.zacsweers.autoservice:auto-service-ksp:1.0.0'
|
||||||
|
}
|
||||||
|
|
||||||
|
publishing {
|
||||||
|
publications {
|
||||||
|
mavenJava(MavenPublication) {
|
||||||
|
artifactId = 'ksp-xposed'
|
||||||
|
from components.java
|
||||||
|
pom {
|
||||||
|
name = 'YukiHookAPI'
|
||||||
|
description = 'An efficient Kotlin version of the Xposed Hook API.'
|
||||||
|
url = 'https://github.com/fankes/YukiHookAPI'
|
||||||
|
licenses {
|
||||||
|
license {
|
||||||
|
name = 'MIT License'
|
||||||
|
url = 'https://github.com/fankes/YukiHookAPI/blob/master/LICENSE'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
developers {
|
||||||
|
developer {
|
||||||
|
id = '0'
|
||||||
|
name = 'fankesyooni'
|
||||||
|
email = 'qzmmcn@163.com'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
scm {
|
||||||
|
connection = 'scm:git:git://github.com/path/to/repo.git'
|
||||||
|
developerConnection = 'scm:git:ssh://github.com/path/to/repo.git'
|
||||||
|
url = 'https://github.com/path/to/repo'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
repositories {
|
||||||
|
maven {
|
||||||
|
name = "OSSRH"
|
||||||
|
if (project.version.toString().endsWith("-SNAPSHOT")) {
|
||||||
|
url = "https://s01.oss.sonatype.org/content/repositories/snapshots"
|
||||||
|
} else {
|
||||||
|
url = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
|
||||||
|
}
|
||||||
|
credentials {
|
||||||
|
username = findProperty("ossrhUsername") ?: System.getenv("OSSRH_USERNAME")
|
||||||
|
password = findProperty("ossrhPassword") ?: System.getenv("OSSRH_PASSWORD")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
signing {
|
||||||
|
sign(publishing.publications.mavenJava)
|
||||||
}
|
}
|
@@ -1,6 +1,8 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id 'java-library'
|
id 'java-library'
|
||||||
id 'org.jetbrains.kotlin.jvm'
|
id 'org.jetbrains.kotlin.jvm'
|
||||||
|
id 'maven-publish'
|
||||||
|
id 'signing'
|
||||||
}
|
}
|
||||||
|
|
||||||
java {
|
java {
|
||||||
@@ -11,6 +13,11 @@ java {
|
|||||||
withSourcesJar()
|
withSourcesJar()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
javadoc {
|
||||||
|
options.addStringOption("charset", "UTF-8")
|
||||||
|
if (JavaVersion.current().isJava9Compatible()) options.addBooleanOption("html5", true)
|
||||||
|
}
|
||||||
|
|
||||||
kotlin { sourceSets.main { kotlin.srcDir("src/api/kotlin") } }
|
kotlin { sourceSets.main { kotlin.srcDir("src/api/kotlin") } }
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
@@ -18,4 +25,54 @@ dependencies {
|
|||||||
compileOnly 'de.robv.android.xposed:api:82'
|
compileOnly 'de.robv.android.xposed:api:82'
|
||||||
compileOnly fileTree(include: ['android-stub.jar'], dir: 'libs')
|
compileOnly fileTree(include: ['android-stub.jar'], dir: 'libs')
|
||||||
implementation 'androidx.annotation:annotation:1.3.0'
|
implementation 'androidx.annotation:annotation:1.3.0'
|
||||||
|
}
|
||||||
|
|
||||||
|
publishing {
|
||||||
|
publications {
|
||||||
|
mavenJava(MavenPublication) {
|
||||||
|
artifactId = 'api'
|
||||||
|
from components.java
|
||||||
|
pom {
|
||||||
|
name = 'YukiHookAPI'
|
||||||
|
description = 'An efficient Kotlin version of the Xposed Hook API.'
|
||||||
|
url = 'https://github.com/fankes/YukiHookAPI'
|
||||||
|
licenses {
|
||||||
|
license {
|
||||||
|
name = 'MIT License'
|
||||||
|
url = 'https://github.com/fankes/YukiHookAPI/blob/master/LICENSE'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
developers {
|
||||||
|
developer {
|
||||||
|
id = '0'
|
||||||
|
name = 'fankesyooni'
|
||||||
|
email = 'qzmmcn@163.com'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
scm {
|
||||||
|
connection = 'scm:git:git://github.com/path/to/repo.git'
|
||||||
|
developerConnection = 'scm:git:ssh://github.com/path/to/repo.git'
|
||||||
|
url = 'https://github.com/path/to/repo'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
repositories {
|
||||||
|
maven {
|
||||||
|
name = "OSSRH"
|
||||||
|
if (project.version.toString().endsWith("-SNAPSHOT")) {
|
||||||
|
url = "https://s01.oss.sonatype.org/content/repositories/snapshots"
|
||||||
|
} else {
|
||||||
|
url = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
|
||||||
|
}
|
||||||
|
credentials {
|
||||||
|
username = findProperty("ossrhUsername") ?: System.getenv("OSSRH_USERNAME")
|
||||||
|
password = findProperty("ossrhPassword") ?: System.getenv("OSSRH_PASSWORD")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
signing {
|
||||||
|
sign(publishing.publications.mavenJava)
|
||||||
}
|
}
|
Reference in New Issue
Block a user