build: 优化构建脚本

This commit is contained in:
2022-10-29 02:25:26 +08:00
parent 144f80e170
commit f7278c435e
3 changed files with 15 additions and 18 deletions

View File

@@ -3,13 +3,14 @@ setArchivesBaseName("HamsterCore-Bukkit")
evaluationDependsOn(':hamster-core-common')
dependencies {
apiShade(project(":hamster-core-common")) {
exclude group: "*"
}
compileOnly 'org.spigotmc:spigot-api:1.12.2-R0.1-SNAPSHOT'
apiShade(project(":hamster-core-common")) { transitive = false }
compileOnly 'net.milkbowl.vault:VaultAPI:1.7'
compileOnly 'org.black_ixx:playerpoints:2.1.3'
compileOnly 'org.spigotmc:spigot-api:1.19.2-R0.1-SNAPSHOT'
// https://mvnrepository.com/artifact/net.kyori/adventure-platform-bukkit
apiShade 'net.kyori:adventure-platform-bukkit:4.1.2'
compileOnly('net.milkbowl.vault:VaultAPI:1.7') { transitive = false }
compileOnly('org.black_ixx:playerpoints:2.1.3') { transitive = false }
// https://mvnrepository.com/artifact/com.zaxxer/HikariCP
//noinspection GradlePackageUpdate
@@ -18,8 +19,6 @@ dependencies {
shade 'mysql:mysql-connector-java:8.0.31'
// https://mvnrepository.com/artifact/com.squareup.okhttp3/okhttp
apiShade 'com.squareup.okhttp3:okhttp:4.10.0'
// https://mvnrepository.com/artifact/net.kyori/adventure-platform-bukkit
apiShade 'net.kyori:adventure-platform-bukkit:4.1.2'
}
processResources {

View File

@@ -3,10 +3,8 @@ setArchivesBaseName("HamsterCore-BungeeCord")
evaluationDependsOn(':hamster-core-common')
dependencies {
apiShade(project(":hamster-core-common")) {
exclude group: "*"
}
//noinspection GradlePackageUpdate
apiShade(project(":hamster-core-common")) { transitive = false }
compileOnly 'net.md-5:bungeecord-api:1.19-R0.1-SNAPSHOT'
// https://mvnrepository.com/artifact/net.kyori/adventure-platform-bungeecord
apiShade 'net.kyori:adventure-platform-bungeecord:4.1.2'

View File

@@ -6,19 +6,19 @@ dependencies {
compileOnly 'com.google.code.gson:gson:2.8.0'
// https://mvnrepository.com/artifact/com.squareup.okhttp3/okhttp
api 'com.squareup.okhttp3:okhttp:4.10.0'
compileOnly 'com.squareup.okhttp3:okhttp:4.10.0'
// https://mvnrepository.com/artifact/net.kyori/adventure-api
api 'net.kyori:adventure-api:4.11.0'
compileOnly 'net.kyori:adventure-api:4.11.0'
// https://mvnrepository.com/artifact/net.kyori/adventure-text-minimessage
api 'net.kyori:adventure-text-minimessage:4.11.0'
compileOnly 'net.kyori:adventure-text-minimessage:4.11.0'
// https://mvnrepository.com/artifact/net.kyori/adventure-platform-api
api 'net.kyori:adventure-platform-api:4.1.2'
compileOnly 'net.kyori:adventure-platform-api:4.1.2'
// https://mvnrepository.com/artifact/net.kyori/adventure-text-serializer-gson
api 'net.kyori:adventure-text-serializer-gson:4.11.0'
compileOnly 'net.kyori:adventure-text-serializer-gson:4.11.0'
// https://mvnrepository.com/artifact/net.kyori/adventure-text-serializer-legacy
api 'net.kyori:adventure-text-serializer-legacy:4.11.0'
compileOnly 'net.kyori:adventure-text-serializer-legacy:4.11.0'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.0'