Ascension/bukkit/build.gradle

89 lines
2.2 KiB
Groovy
Raw Normal View History

2022-03-20 12:46:06 +01:00
import dev.vankka.dependencydownload.task.GenerateDependencyDownloadResourceTask
2022-04-25 14:35:50 +02:00
shadowJar {
archiveFileName = 'bukkit.jarinjar'
[
'net.kyori',
'me.lucko.commodore'
].each {
relocate it, 'com.discordsrv.dependencies.' + it
}
// More relocations in buildscript/relocations.gradle
}
2021-07-29 03:14:29 +02:00
apply from: rootProject.file('buildscript/runtime.gradle')
2022-03-20 12:46:06 +01:00
configurations {
commodore
compileOnly.extendsFrom commodore
}
task generateResourceForCommodore(type: GenerateDependencyDownloadResourceTask) {
var conf = configurations.commodore
configuration = conf
file = 'dependencies/' + conf.name + '.txt'
}
2021-07-29 03:14:29 +02:00
allprojects {
repositories {
exclusiveContent {
forRepository {
maven { url 'https://papermc.io/repo/repository/maven-public/' }
}
filter {
includeGroup 'com.destroystokyo.paper'
2022-04-22 19:56:11 +02:00
includeGroup 'io.papermc'
includeGroup 'org.spigotmc'
}
}
exclusiveContent {
forRepository {
maven { url 'https://nexus.scarsz.me/content/groups/public/' }
}
filter {
includeGroup 'net.milkbowl.vault'
2022-04-26 16:00:09 +02:00
includeGroup 'me.clip'
}
}
2021-07-29 03:14:29 +02:00
}
dependencies {
// Platform
2022-04-22 19:56:11 +02:00
compileOnly(libs.paperapi.old)
2021-07-29 03:14:29 +02:00
}
}
dependencies {
// API
annotationProcessor project(':api')
2021-07-29 03:14:29 +02:00
// Common
compileOnly project(':common:common-server')
implementation project(path: ':common:common-server', configuration: 'runtimeElements')
2021-07-29 03:14:29 +02:00
// DependencyDownload
2022-04-22 19:56:11 +02:00
implementation(libs.mcdependencydownload.bukkit.bootstrap)
2021-07-29 03:14:29 +02:00
// Adventure
2022-04-22 19:56:11 +02:00
runtimeDownloadApi(libs.adventure.api)
runtimeDownloadApi(libs.adventure.platform.bukkit)
2022-03-20 12:46:06 +01:00
// Commodore
2022-04-22 19:56:11 +02:00
commodore(libs.commodore) {
2022-03-20 12:46:06 +01:00
// We only use commodore when it's included in the server, so we don't want to download it
exclude module: 'brigadier'
// We don't use the commodore file format
exclude module: 'commodore-file'
}
// Integrations
2022-04-22 19:56:11 +02:00
compileOnly(libs.vaultapi)
2022-04-26 16:00:09 +02:00
compileOnly(libs.placeholderapi.bukkit)
2021-07-29 03:14:29 +02:00
}
2022-03-20 12:46:06 +01:00
processResources {
dependsOn(generateResourceForCommodore)
2021-07-29 03:14:29 +02:00
}