refactor: 格式化代码
This commit is contained in:
22
build.gradle
22
build.gradle
@@ -27,8 +27,14 @@ subprojects {
|
||||
// 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'
|
||||
|
||||
//noinspection VulnerableLibrariesLocal
|
||||
compileOnly "org.spigotmc:spigot-api:${spigot_api_version}"
|
||||
//noinspection VulnerableLibrariesLocal
|
||||
compileOnly "net.md-5:bungeecord-api:${bungee_api_version}"
|
||||
}
|
||||
|
||||
tasks.withType(JavaCompile).configureEach {
|
||||
@@ -37,17 +43,25 @@ subprojects {
|
||||
|
||||
tasks.withType(Jar).configureEach {
|
||||
from([rootProject.file("LICENSE")])
|
||||
duplicatesStrategy(DuplicatesStrategy.EXCLUDE)
|
||||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||
}
|
||||
|
||||
java {
|
||||
sourceCompatibility = JavaVersion.VERSION_17
|
||||
targetCompatibility = JavaVersion.VERSION_17
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
targetCompatibility = JavaVersion.VERSION_1_8
|
||||
// withJavadocJar()
|
||||
withSourcesJar()
|
||||
}
|
||||
|
||||
jar {
|
||||
destinationDir(rootProject.buildDir)
|
||||
destinationDirectory = rootProject.buildDir
|
||||
}
|
||||
|
||||
processResources {
|
||||
inputs.property "version", project.version
|
||||
filesMatching(["plugin.yml", "bungee.yml"]) {
|
||||
expand "version": project.version
|
||||
}
|
||||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user