mirror of
https://github.com/DiscordSRV/Ascension.git
synced 2025-02-23 02:51:23 +01:00
37 lines
874 B
Groovy
37 lines
874 B
Groovy
import org.apache.tools.ant.filters.ReplaceTokens
|
|
|
|
[
|
|
'net.kyori.adventure.platform',
|
|
'net.kyori.adventure.text.serializer'
|
|
].each {
|
|
tasks.shadowJar.relocate it, 'com.discordsrv.dependencies.' + it
|
|
tasks.generateRuntimeDownloadResourceForRuntimeDownloadOnly.relocate it, 'com.discordsrv.dependencies.' + it
|
|
}
|
|
|
|
apply plugin: 'xyz.jpenilla.run-waterfall'
|
|
apply from: rootProject.file('buildscript/loader.gradle')
|
|
|
|
dependencies {
|
|
// API
|
|
implementation project(':common:common-api')
|
|
|
|
// DependencyDownload
|
|
implementation(libs.mcdependencydownload.bungee.loader)
|
|
}
|
|
|
|
processResources {
|
|
filter(ReplaceTokens, tokens: ['VERSION': project.version])
|
|
}
|
|
|
|
shadowJar {
|
|
archiveBaseName = 'DiscordSRV-Bungee'
|
|
}
|
|
|
|
tasks {
|
|
runWaterfall {
|
|
waterfallVersion("1.20")
|
|
}
|
|
}
|
|
|
|
// buildscript/loader.gradle includes the jarinjar in the jar
|