mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-04 17:55:24 +08:00
77 lines
2.2 KiB
Groovy
77 lines
2.2 KiB
Groovy
plugins {
|
|
id 'java-library'
|
|
id 'org.jetbrains.kotlin.jvm'
|
|
id 'maven-publish'
|
|
id 'signing'
|
|
}
|
|
|
|
java {
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
sourceSets.main { java.srcDir("src/api/kotlin") }
|
|
withJavadocJar()
|
|
withSourcesJar()
|
|
}
|
|
|
|
javadoc {
|
|
options.addStringOption("charset", "UTF-8")
|
|
if (JavaVersion.current().isJava9Compatible()) options.addBooleanOption('html5', true)
|
|
}
|
|
|
|
kotlin { sourceSets.main { kotlin.srcDir("src/api/kotlin") } }
|
|
|
|
dependencies {
|
|
// Used 82 API Version
|
|
compileOnly 'de.robv.android.xposed:api:82'
|
|
compileOnly fileTree(include: ['android-stub.jar'], dir: 'libs')
|
|
implementation 'androidx.annotation:annotation:1.3.0'
|
|
}
|
|
|
|
group = rootProject.ext.groupId
|
|
version = rootProject.ext.apiVersion
|
|
|
|
publishing {
|
|
publications {
|
|
mavenJava(MavenPublication) {
|
|
artifactId = 'api'
|
|
from components.java
|
|
pom {
|
|
name = rootProject.ext.repoName
|
|
description = rootProject.ext.repoDescription
|
|
url = rootProject.ext.website
|
|
licenses {
|
|
license {
|
|
name = rootProject.ext.licenceName
|
|
url = rootProject.ext.licenceUrl
|
|
}
|
|
}
|
|
developers {
|
|
developer {
|
|
id = rootProject.ext.devId
|
|
name = rootProject.ext.devUser
|
|
email = rootProject.ext.userEmail
|
|
}
|
|
}
|
|
scm {
|
|
connection = rootProject.ext.githubConnection
|
|
developerConnection = rootProject.ext.githubDeveloperConnection
|
|
url = rootProject.ext.githubUrl
|
|
}
|
|
}
|
|
}
|
|
}
|
|
repositories {
|
|
maven {
|
|
name = rootProject.ext.ossName
|
|
url = rootProject.ext.ossUrl
|
|
credentials {
|
|
username = getFileContent("OSSRH_USERNAME")
|
|
password = getFileContent("OSSRH_PASSWORD")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
signing {
|
|
sign(publishing.publications.mavenJava)
|
|
} |