Files
YukiHookAPI/yukihookapi-ksp-xposed/build.gradle
2022-02-14 03:40:59 +08:00

79 lines
2.7 KiB
Groovy

plugins {
id 'java-library'
id 'org.jetbrains.kotlin.jvm'
id 'com.google.devtools.ksp' version '1.6.10-1.0.2'
id 'maven-publish'
id 'signing'
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
kotlin { sourceSets.main { kotlin.srcDir("src/api/kotlin") } }
dependencies {
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'
ksp 'dev.zacsweers.autoservice:auto-service-ksp:1.0.0'
}
group = 'com.highcapable.yukihookapi'
version = '1.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 {
BufferedReader buff_USERNAME = new BufferedReader(new FileReader("/Users/fankes/ProjectPath/AndroidStudioProjects/YukiHookAPI/.gradle/OSSRH_USERNAME"))
String OSSRH_USERNAME = buff_USERNAME.readLine()
buff_USERNAME.close()
BufferedReader buff_PASSWORD = new BufferedReader(new FileReader("/Users/fankes/ProjectPath/AndroidStudioProjects/YukiHookAPI/.gradle/OSSRH_PASSWORD"))
String OSSRH_PASSWORD = buff_PASSWORD.readLine()
buff_PASSWORD.close()
username = OSSRH_USERNAME
password = OSSRH_PASSWORD
}
}
}
}
signing {
sign(publishing.publications.mavenJava)
}