mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-04 09:45:19 +08:00
- Update Kotlin version to 1.7.22 - Update Gradle version to 7.6 - Update Gradle dependencies
82 lines
2.3 KiB
Groovy
82 lines
2.3 KiB
Groovy
plugins {
|
|
id 'java-library'
|
|
id 'org.jetbrains.kotlin.jvm'
|
|
id 'com.google.devtools.ksp' version '1.7.22-1.0.8'
|
|
id 'maven-publish'
|
|
id 'signing'
|
|
}
|
|
|
|
java {
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
withJavadocJar()
|
|
withSourcesJar()
|
|
}
|
|
|
|
javadoc {
|
|
options.addStringOption("charset", "UTF-8")
|
|
if (JavaVersion.current().isJava9Compatible()) options.addBooleanOption('html5', true)
|
|
}
|
|
|
|
kotlin { sourceSets.main { kotlin.srcDir("src/api/kotlin") } }
|
|
|
|
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
|
|
kotlinOptions {
|
|
jvmTarget = 11
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'com.google.auto.service:auto-service-annotations:1.0.1'
|
|
compileOnly 'com.google.devtools.ksp:symbol-processing-api:1.7.22-1.0.8'
|
|
ksp 'dev.zacsweers.autoservice:auto-service-ksp:1.0.0'
|
|
}
|
|
|
|
group = rootProject.ext.groupId
|
|
version = rootProject.ext.apiVersion
|
|
|
|
publishing {
|
|
publications {
|
|
mavenJava(MavenPublication) {
|
|
artifactId = 'ksp-xposed'
|
|
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)
|
|
} |