2022-03-20 12:46:06 +01:00
|
|
|
import dev.vankka.dependencydownload.task.GenerateDependencyDownloadResourceTask
|
|
|
|
|
2023-04-30 18:28:11 +02:00
|
|
|
[
|
|
|
|
'net.kyori',
|
|
|
|
'me.lucko.commodore'
|
|
|
|
].each {
|
|
|
|
tasks.shadowJar.relocate it, 'com.discordsrv.dependencies.' + it
|
|
|
|
tasks.generateRuntimeDownloadResourceForRuntimeDownloadOnly.relocate it, 'com.discordsrv.dependencies.' + it
|
|
|
|
}
|
|
|
|
// More relocations in buildscript/relocations.gradle
|
|
|
|
|
2022-04-25 14:35:50 +02:00
|
|
|
shadowJar {
|
|
|
|
archiveFileName = 'bukkit.jarinjar'
|
|
|
|
}
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2023-02-20 20:55:45 +01:00
|
|
|
tasks.register('generateResourceForCommodore', GenerateDependencyDownloadResourceTask) {
|
2022-03-20 12:46:06 +01:00
|
|
|
var conf = configurations.commodore
|
|
|
|
configuration = conf
|
|
|
|
file = 'dependencies/' + conf.name + '.txt'
|
|
|
|
}
|
|
|
|
|
2021-07-29 03:14:29 +02:00
|
|
|
allprojects {
|
|
|
|
repositories {
|
2023-05-18 11:33:48 +02:00
|
|
|
maven { url 'https://papermc.io/repo/repository/maven-public/' }
|
|
|
|
maven { url 'https://nexus.scarsz.me/content/groups/public/' }
|
2024-03-30 13:41:12 +01:00
|
|
|
maven { url 'https://repo.essentialsx.net/releases/' }
|
2021-07-29 03:14:29 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2022-02-03 20:43:03 +01:00
|
|
|
// API
|
|
|
|
annotationProcessor project(':api')
|
|
|
|
|
2023-04-23 15:53:58 +02:00
|
|
|
// Platform
|
2023-11-12 23:58:17 +01:00
|
|
|
compileOnly(libs.bukkit)
|
2023-04-23 15:53:58 +02:00
|
|
|
|
2021-07-29 03:14:29 +02:00
|
|
|
// Common
|
2022-12-18 22:15:24 +01:00
|
|
|
compileOnly project(':common')
|
|
|
|
implementation project(path: ':common', configuration: 'runtimeElements')
|
2021-07-29 03:14:29 +02:00
|
|
|
|
2023-04-23 15:53:58 +02:00
|
|
|
// Folia, modern bukkit
|
|
|
|
api project(':bukkit:bukkit-folia')
|
|
|
|
api project(':bukkit:bukkit-paper')
|
2023-11-12 23:58:17 +01:00
|
|
|
api project(':bukkit:bukkit-spigot')
|
2023-04-23 15:53:58 +02:00
|
|
|
api project(':bukkit:bukkit-bukkit1_12')
|
|
|
|
|
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-01-18 21:15:43 +01:00
|
|
|
|
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'
|
|
|
|
}
|
|
|
|
|
2022-01-18 21:15:43 +01:00
|
|
|
// Integrations
|
2022-04-22 19:56:11 +02:00
|
|
|
compileOnly(libs.vaultapi)
|
2022-04-26 16:00:09 +02:00
|
|
|
compileOnly(libs.placeholderapi.bukkit)
|
2023-02-20 20:55:45 +01:00
|
|
|
|
|
|
|
// Chat Integrations
|
|
|
|
compileOnly(libs.chatty)
|
2023-05-18 11:46:03 +02:00
|
|
|
compileOnly(libs.griefprevention)
|
2023-02-20 20:55:45 +01:00
|
|
|
compileOnly(libs.lunachat)
|
2023-11-12 23:58:17 +01:00
|
|
|
compileOnly(libs.bungeecord.chat) // Required for LunaChatIntegration
|
2023-05-18 11:33:48 +02:00
|
|
|
compileOnly(libs.mcmmo)
|
2023-02-20 20:55:45 +01:00
|
|
|
compileOnly(libs.townychat)
|
|
|
|
compileOnly(libs.venturechat)
|
2024-03-30 13:41:12 +01:00
|
|
|
compileOnly(libs.essentialsx)
|
2021-07-29 03:14:29 +02:00
|
|
|
}
|
|
|
|
|
2023-04-30 18:28:11 +02:00
|
|
|
|
2022-03-20 12:46:06 +01:00
|
|
|
processResources {
|
|
|
|
dependsOn(generateResourceForCommodore)
|
2023-04-30 18:28:11 +02:00
|
|
|
}
|