2021-07-29 03:14:29 +02:00
|
|
|
import dev.vankka.dependencydownload.task.GenerateDependencyDownloadResourceTask
|
|
|
|
|
|
|
|
configurations {
|
2022-02-01 10:33:50 +01:00
|
|
|
hikari
|
2021-07-29 03:14:29 +02:00
|
|
|
h2Driver
|
|
|
|
mysqlDriver
|
2022-05-11 18:09:41 +02:00
|
|
|
mcAuthLib
|
|
|
|
compileOnly.extendsFrom hikari, h2Driver, mysqlDriver, mcAuthLib
|
2021-10-21 01:16:06 +02:00
|
|
|
testRuntimeOnly.extendsFrom runtimeDownloadOnly
|
2021-07-29 03:14:29 +02:00
|
|
|
}
|
|
|
|
|
2022-02-01 10:33:50 +01:00
|
|
|
task generateResourceForHikari(type: GenerateDependencyDownloadResourceTask) {
|
|
|
|
var conf = configurations.hikari
|
|
|
|
configuration = conf
|
|
|
|
file = 'dependencies/' + conf.name + '.txt'
|
|
|
|
}
|
2021-07-29 03:14:29 +02:00
|
|
|
task generateResourceForH2Driver(type: GenerateDependencyDownloadResourceTask) {
|
|
|
|
var conf = configurations.h2Driver
|
|
|
|
configuration = conf
|
2021-10-23 01:20:15 +02:00
|
|
|
file = 'dependencies/' + conf.name + '.txt'
|
2021-07-29 03:14:29 +02:00
|
|
|
}
|
|
|
|
task generateResourceForMySQLDriver(type: GenerateDependencyDownloadResourceTask) {
|
|
|
|
var conf = configurations.mysqlDriver
|
|
|
|
configuration = conf
|
2021-10-23 01:20:15 +02:00
|
|
|
file = 'dependencies/' + conf.name + '.txt'
|
2021-07-29 03:14:29 +02:00
|
|
|
}
|
2022-05-11 18:09:41 +02:00
|
|
|
task generateResourceForMCAuthLib(type: GenerateDependencyDownloadResourceTask) {
|
|
|
|
var conf = configurations.mcAuthLib
|
|
|
|
configuration = conf
|
|
|
|
file = 'dependencies/' + conf.name + '.txt'
|
|
|
|
}
|
2021-07-29 03:14:29 +02:00
|
|
|
|
|
|
|
dependencies {
|
|
|
|
// API
|
|
|
|
annotationProcessor project(':api')
|
2021-10-25 01:04:46 +02:00
|
|
|
compileOnlyApi project(':common:common-api')
|
|
|
|
testImplementation project(':common:common-api')
|
2021-07-29 03:14:29 +02:00
|
|
|
|
|
|
|
// DependencyDownload
|
2022-04-22 19:56:11 +02:00
|
|
|
api(libs.dependencydownload.runtime)
|
2021-07-29 03:14:29 +02:00
|
|
|
|
|
|
|
// Discord Webhooks
|
2022-04-22 19:56:11 +02:00
|
|
|
runtimeDownloadApi(libs.webhooks)
|
2021-07-29 03:14:29 +02:00
|
|
|
|
|
|
|
// Apache Commons
|
2022-04-22 19:56:11 +02:00
|
|
|
runtimeDownloadApi(libs.commons.lang)
|
|
|
|
runtimeDownloadApi(libs.commons.io)
|
2021-07-29 03:14:29 +02:00
|
|
|
|
|
|
|
// Caffeine
|
2022-04-22 19:56:11 +02:00
|
|
|
runtimeDownloadApi(libs.caffeine) {
|
2022-03-28 16:20:37 +02:00
|
|
|
exclude group: 'com.google.errorprone', module: 'error_prone_annotations'
|
|
|
|
}
|
2021-07-29 03:14:29 +02:00
|
|
|
|
2022-01-25 18:14:16 +01:00
|
|
|
// Jackson (transitive in :api)
|
2022-04-22 19:56:11 +02:00
|
|
|
compileOnlyApi(libs.jackson.databind)
|
|
|
|
|
|
|
|
// Config
|
|
|
|
runtimeDownloadApi(libs.configurate.yaml)
|
|
|
|
runtimeDownloadApi(libs.configurate.hocon)
|
2022-01-25 18:14:16 +01:00
|
|
|
|
2021-12-24 00:21:14 +01:00
|
|
|
// Logging
|
2022-04-26 13:56:32 +02:00
|
|
|
compileOnlyApi project(':common:common-unrelocate')
|
2022-04-22 19:56:11 +02:00
|
|
|
compileOnly(libs.log4j.core)
|
2021-12-24 00:21:14 +01:00
|
|
|
|
2021-07-29 03:14:29 +02:00
|
|
|
// Adventure, MCDiscordReserializer, EnhancedLegacyText
|
2022-04-22 19:56:11 +02:00
|
|
|
runtimeDownloadApi(libs.adventure.api)
|
|
|
|
runtimeDownloadApi(libs.adventure.serializer.plain)
|
|
|
|
runtimeDownloadApi(libs.adventure.serializer.legacy)
|
|
|
|
runtimeDownloadApi(libs.adventure.serializer.gson)
|
|
|
|
runtimeDownloadApi(libs.mcdiscordreserializer)
|
|
|
|
runtimeDownloadApi(libs.enhancedlegacytext)
|
2022-03-20 12:46:06 +01:00
|
|
|
|
2022-02-01 10:33:50 +01:00
|
|
|
// Database
|
2022-05-11 18:26:02 +02:00
|
|
|
hikari(libs.hikaricp)
|
2022-04-22 19:56:11 +02:00
|
|
|
h2Driver(libs.h2)
|
|
|
|
mysqlDriver(libs.mysql)
|
|
|
|
|
2022-05-11 18:09:41 +02:00
|
|
|
// MinecraftAuthentication library
|
2022-05-11 18:26:02 +02:00
|
|
|
mcAuthLib(libs.minecraftauth.lib) {
|
|
|
|
exclude group: 'junit', module: 'junit'
|
|
|
|
exclude group: 'org.jetbrains', module: 'annotations'
|
|
|
|
}
|
2022-05-11 18:09:41 +02:00
|
|
|
|
2022-04-22 19:56:11 +02:00
|
|
|
// Brigadier
|
|
|
|
compileOnlyApi(libs.brigadier)
|
2021-12-24 00:21:14 +01:00
|
|
|
|
|
|
|
// Integrations
|
2022-04-22 19:56:11 +02:00
|
|
|
compileOnlyApi(libs.luckperms)
|
2021-07-29 03:14:29 +02:00
|
|
|
}
|
|
|
|
|
2021-10-21 01:16:06 +02:00
|
|
|
processResources {
|
2021-07-29 03:14:29 +02:00
|
|
|
dependsOn(
|
|
|
|
generateRuntimeDownloadResourceForRuntimeDownloadOnly,
|
2022-02-01 10:33:50 +01:00
|
|
|
generateResourceForHikari,
|
2021-07-29 03:14:29 +02:00
|
|
|
generateResourceForH2Driver,
|
2022-05-11 18:09:41 +02:00
|
|
|
generateResourceForMySQLDriver,
|
|
|
|
generateResourceForMCAuthLib
|
2021-07-29 03:14:29 +02:00
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Relocations in buildscript/relocations.gradle
|