refactor: 格式化代码

This commit is contained in:
2023-05-10 19:07:47 +08:00
parent ac2e9ea81d
commit 43737463a7
15 changed files with 57 additions and 199 deletions

View File

@@ -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
}
}