53 lines
1.2 KiB
Groovy
53 lines
1.2 KiB
Groovy
plugins {
|
|
id 'java'
|
|
}
|
|
|
|
group 'cn.hamster3.mc.plugin'
|
|
version '1.0.0-SNAPSHOT'
|
|
|
|
subprojects {
|
|
apply plugin: 'java'
|
|
|
|
group = rootProject.group
|
|
version = rootProject.version
|
|
|
|
repositories {
|
|
maven {
|
|
url = "https://maven.airgame.net/maven-public/"
|
|
}
|
|
}
|
|
|
|
configurations {
|
|
shade
|
|
api.extendsFrom apiShade
|
|
implementation.extendsFrom implementationShade
|
|
}
|
|
|
|
dependencies {
|
|
// https://mvnrepository.com/artifact/org.projectlombok/lombok
|
|
compileOnly 'org.projectlombok:lombok:1.18.24'
|
|
annotationProcessor 'org.projectlombok:lombok:1.18.24'
|
|
// https://mvnrepository.com/artifact/org.jetbrains/annotations
|
|
compileOnly 'org.jetbrains:annotations:23.0.0'
|
|
}
|
|
|
|
tasks.withType(JavaCompile) {
|
|
options.setEncoding("UTF-8")
|
|
}
|
|
|
|
tasks.withType(Jar) {
|
|
from([rootProject.file("LICENSE")])
|
|
duplicatesStrategy(DuplicatesStrategy.EXCLUDE)
|
|
}
|
|
|
|
java {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
// withJavadocJar()
|
|
withSourcesJar()
|
|
}
|
|
jar {
|
|
destinationDir(rootProject.buildDir)
|
|
}
|
|
}
|