2021-07-29 03:14:29 +02:00
|
|
|
import org.apache.tools.ant.filters.ReplaceTokens
|
|
|
|
|
2024-10-20 21:59:19 +02:00
|
|
|
apply plugin: 'xyz.jpenilla.run-paper'
|
2021-07-29 03:14:29 +02:00
|
|
|
apply from: rootProject.file('buildscript/loader.gradle')
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
// API
|
2021-10-25 01:04:46 +02:00
|
|
|
implementation project(':common:common-api')
|
2021-07-29 03:14:29 +02:00
|
|
|
|
2023-04-23 15:53:58 +02:00
|
|
|
// Platform
|
|
|
|
compileOnly(libs.spigotapi)
|
|
|
|
|
2021-07-29 03:14:29 +02:00
|
|
|
// DependencyDownload
|
2022-04-22 19:56:11 +02:00
|
|
|
implementation(libs.mcdependencydownload.bukkit.loader)
|
2021-07-29 03:14:29 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
processResources {
|
|
|
|
filter(ReplaceTokens, tokens: ['VERSION': project.version])
|
|
|
|
}
|
|
|
|
|
|
|
|
shadowJar {
|
|
|
|
archiveBaseName = 'DiscordSRV-Bukkit'
|
|
|
|
}
|
|
|
|
|
2024-10-20 21:59:19 +02:00
|
|
|
tasks {
|
|
|
|
runServer {
|
|
|
|
minecraftVersion("1.21.1")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-07-29 03:14:29 +02:00
|
|
|
// buildscript/loader.gradle includes the jarinjar in the jar
|