2022-03-20 12:46:06 +01:00
|
|
|
import dev.vankka.dependencydownload.task.GenerateDependencyDownloadResourceTask
|
|
|
|
|
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'
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
allprojects {
|
|
|
|
repositories {
|
2022-02-03 20:43:03 +01:00
|
|
|
exclusiveContent {
|
|
|
|
forRepository {
|
|
|
|
maven { url 'https://papermc.io/repo/repository/maven-public/' }
|
|
|
|
}
|
|
|
|
filter {
|
|
|
|
includeGroup 'com.destroystokyo.paper'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
exclusiveContent {
|
|
|
|
forRepository {
|
|
|
|
maven { url 'https://nexus.scarsz.me/content/groups/public/' }
|
|
|
|
}
|
|
|
|
filter {
|
|
|
|
includeGroup 'net.milkbowl.vault'
|
|
|
|
}
|
|
|
|
}
|
2021-07-29 03:14:29 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
// Platform
|
|
|
|
compileOnly 'com.destroystokyo.paper:paper-api:1.16.5-R0.1-SNAPSHOT'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2022-02-03 20:43:03 +01:00
|
|
|
// API
|
|
|
|
annotationProcessor project(':api')
|
|
|
|
|
2021-07-29 03:14:29 +02:00
|
|
|
// Common
|
2021-10-25 01:04:46 +02:00
|
|
|
compileOnly project(':common:common-server')
|
|
|
|
implementation project(path: ':common:common-server', configuration: 'runtimeElements')
|
2021-07-29 03:14:29 +02:00
|
|
|
|
|
|
|
// DependencyDownload
|
2022-02-19 21:47:39 +01:00
|
|
|
implementation 'dev.vankka:minecraftdependencydownload-bukkit:' + rootProject.mddVersion
|
2021-07-29 03:14:29 +02:00
|
|
|
|
|
|
|
// Adventure
|
|
|
|
runtimeDownloadApi 'net.kyori:adventure-platform-bukkit:' + rootProject.adventurePlatformVersion
|
2022-01-18 21:15:43 +01:00
|
|
|
|
2022-03-20 12:46:06 +01:00
|
|
|
// Commodore
|
|
|
|
commodore('me.lucko:commodore:1.10') {
|
|
|
|
// 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-02-03 20:43:03 +01:00
|
|
|
compileOnly 'net.milkbowl.vault:VaultAPI:1.7'
|
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
|
|
|
}
|