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-02-19 23:57:42 +01:00
|
|
|
compileOnly.extendsFrom hikari, h2Driver, mysqlDriver
|
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'
|
|
|
|
relocate 'com.zaxxer.hikari', 'com.discordsrv.dependencies.com.zaxxer.hikari'
|
2022-02-19 23:57:42 +01:00
|
|
|
relocate 'org.slf4j', 'com.discordsrv.dependencies.org.slf4j'
|
2022-02-01 10:33:50 +01:00
|
|
|
}
|
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
|
|
|
}
|
|
|
|
|
|
|
|
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-02-19 21:47:39 +01:00
|
|
|
api 'dev.vankka:dependencydownload-runtime:' + rootProject.ddVersion
|
2021-07-29 03:14:29 +02:00
|
|
|
|
|
|
|
// Discord Webhooks
|
2022-02-01 11:39:59 +01:00
|
|
|
runtimeDownloadApi 'club.minnced:discord-webhooks:0.7.5'
|
2021-07-29 03:14:29 +02:00
|
|
|
|
|
|
|
// Apache Commons
|
|
|
|
runtimeDownloadApi 'org.apache.commons:commons-lang3:3.12.0'
|
|
|
|
runtimeDownloadApi 'commons-io:commons-io:2.10.0'
|
|
|
|
|
|
|
|
// Caffeine
|
2022-03-28 16:20:37 +02:00
|
|
|
runtimeDownloadApi('com.github.ben-manes.caffeine:caffeine:2.9.2') {
|
|
|
|
exclude group: 'com.google.errorprone', module: 'error_prone_annotations'
|
|
|
|
}
|
2021-07-29 03:14:29 +02:00
|
|
|
|
|
|
|
// Config
|
|
|
|
runtimeDownloadApi 'org.spongepowered:configurate-yaml:' + rootProject.configurateVersion
|
|
|
|
runtimeDownloadApi 'org.spongepowered:configurate-hocon:' + rootProject.configurateVersion
|
|
|
|
|
2022-01-25 18:14:16 +01:00
|
|
|
// Jackson (transitive in :api)
|
2022-04-13 13:07:43 +02:00
|
|
|
compileOnlyApi 'com.fasterxml.jackson.core:jackson-databind:2.10.1'
|
2022-01-25 18:14:16 +01:00
|
|
|
|
2021-12-24 00:21:14 +01:00
|
|
|
// Logging
|
|
|
|
compileOnlyApi project(':common:common-slf4j-hack')
|
|
|
|
compileOnly 'org.apache.logging.log4j:log4j-core:2.0-beta9'
|
|
|
|
|
2021-07-29 03:14:29 +02:00
|
|
|
// Adventure, MCDiscordReserializer, EnhancedLegacyText
|
|
|
|
runtimeDownloadApi 'net.kyori:adventure-api:' + rootProject.adventureVersion
|
|
|
|
runtimeDownloadApi 'net.kyori:adventure-text-serializer-plain:' + rootProject.adventureVersion
|
|
|
|
runtimeDownloadApi 'net.kyori:adventure-text-serializer-legacy:' + rootProject.adventureVersion
|
|
|
|
runtimeDownloadApi 'net.kyori:adventure-text-serializer-gson:' + rootProject.adventureVersion
|
2022-04-10 17:20:46 +02:00
|
|
|
runtimeDownloadApi 'dev.vankka:mcdiscordreserializer:4.3.0'
|
2021-07-29 03:14:29 +02:00
|
|
|
runtimeDownloadApi 'dev.vankka:enhancedlegacytext:1.0.0-SNAPSHOT'
|
|
|
|
|
2022-03-20 12:46:06 +01:00
|
|
|
// Brigadier
|
|
|
|
compileOnlyApi 'com.mojang:brigadier:1.0.18'
|
|
|
|
|
2022-02-01 10:33:50 +01:00
|
|
|
// Database
|
|
|
|
hikari('com.zaxxer:HikariCP:4.0.3') { exclude group: 'org.slf4j' }
|
|
|
|
h2Driver 'com.h2database:h2:2.1.210'
|
2021-07-29 03:14:29 +02:00
|
|
|
mysqlDriver 'mysql:mysql-connector-java:8.0.25'
|
2021-12-24 00:21:14 +01:00
|
|
|
|
|
|
|
// Integrations
|
|
|
|
compileOnlyApi 'net.luckperms:api:5.3'
|
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,
|
|
|
|
generateResourceForMySQLDriver
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Relocations in buildscript/relocations.gradle
|