52 lines
1.5 KiB
Groovy
52 lines
1.5 KiB
Groovy
setArchivesBaseName("HamsterCore-Proxy")
|
|
|
|
evaluationDependsOn(':hamster-core-common')
|
|
|
|
dependencies {
|
|
apiShade(project(":hamster-core-common")) {
|
|
exclude group: "*"
|
|
}
|
|
//noinspection GradlePackageUpdate
|
|
compileOnly('net.md-5:bungeecord-api:1.17-R0.1-SNAPSHOT')
|
|
|
|
// https://mvnrepository.com/artifact/com.zaxxer/HikariCP
|
|
//noinspection GradlePackageUpdate
|
|
apiShade 'com.zaxxer:HikariCP:4.0.3'
|
|
// https://mvnrepository.com/artifact/com.squareup.okhttp3/okhttp
|
|
apiShade 'com.squareup.okhttp3:okhttp:4.10.0'
|
|
// https://mvnrepository.com/artifact/net.kyori/adventure-platform-bungeecord
|
|
apiShade 'net.kyori:adventure-platform-bungeecord:4.1.2'
|
|
|
|
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.0'
|
|
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.0'
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
processResources {
|
|
inputs.property "version", project.version
|
|
filesMatching("bungee.yml") {
|
|
expand "version": project.version
|
|
}
|
|
}
|
|
|
|
tasks.compileJava.dependsOn(":hamster-core-common:build")
|
|
tasks.create("shadowJar", Jar) {
|
|
dependsOn("jar")
|
|
from([
|
|
tasks.jar.outputs.files.collect {
|
|
it.isDirectory() ? it : zipTree(it)
|
|
},
|
|
configurations.implementationShade.collect {
|
|
it.isDirectory() ? it : zipTree(it)
|
|
},
|
|
configurations.apiShade.collect {
|
|
it.isDirectory() ? it : zipTree(it)
|
|
}
|
|
])
|
|
destinationDir(getRootProject().buildDir)
|
|
}
|
|
tasks.build.dependsOn(shadowJar)
|