mirror of
https://github.com/funkemunky/AntiVPN.git
synced 2026-05-31 01:21:55 +00:00
37 lines
800 B
Groovy
37 lines
800 B
Groovy
plugins {
|
|
id 'com.gradleup.shadow'
|
|
}
|
|
|
|
evaluationDependsOn(':Bungee:BungeePlugin')
|
|
|
|
dependencies {
|
|
compileOnly 'net.md-5:bungeecord-api:1.21-R0.2'
|
|
compileOnly project(':Bungee:BungeePlugin')
|
|
implementation project(':Common:loader-utils')
|
|
}
|
|
|
|
tasks.processResources {
|
|
filesMatching('bungee.yml') {
|
|
expand(project: project, projectVersion: project.version)
|
|
}
|
|
}
|
|
|
|
shadowJar {
|
|
archiveClassifier.set('')
|
|
|
|
// Include the shaded plugin jar as a single resource file
|
|
from(project(':Bungee:BungeePlugin').tasks.shadowJar) {
|
|
rename { 'antivpn-bungee.jarinjar' }
|
|
}
|
|
}
|
|
|
|
tasks.named('shadowJar') {
|
|
dependsOn(':Bungee:BungeePlugin:shadowJar')
|
|
}
|
|
|
|
tasks.named('compileJava') {
|
|
dependsOn(':Bungee:BungeePlugin:shadowJar')
|
|
}
|
|
|
|
tasks.build.dependsOn shadowJar
|