Ascension/common/build.gradle

112 lines
3.3 KiB
Groovy
Raw Normal View History

2021-07-29 03:14:29 +02:00
import dev.vankka.dependencydownload.task.GenerateDependencyDownloadResourceTask
configurations {
hikari
2021-07-29 03:14:29 +02:00
h2Driver
mysqlDriver
2023-07-09 20:03:48 +02:00
mariadbDriver
mcAuthLib
2023-07-09 20:03:48 +02:00
compileOnly.extendsFrom hikari, h2Driver, mysqlDriver, mariadbDriver, mcAuthLib
testRuntimeOnly.extendsFrom runtimeDownloadOnly
2021-07-29 03:14:29 +02:00
}
tasks.register('generateResourceForHikari', GenerateDependencyDownloadResourceTask) {
var conf = configurations.hikari
configuration = conf
file = 'dependencies/' + conf.name + '.txt'
}
tasks.register('generateResourceForH2Driver', GenerateDependencyDownloadResourceTask) {
2021-07-29 03:14:29 +02:00
var conf = configurations.h2Driver
configuration = conf
file = 'dependencies/' + conf.name + '.txt'
2021-07-29 03:14:29 +02:00
}
tasks.register('generateResourceForMySQLDriver', GenerateDependencyDownloadResourceTask) {
2021-07-29 03:14:29 +02:00
var conf = configurations.mysqlDriver
configuration = conf
file = 'dependencies/' + conf.name + '.txt'
2021-07-29 03:14:29 +02:00
}
2023-07-09 20:03:48 +02:00
tasks.register('generateResourceForMariaDBDriver', GenerateDependencyDownloadResourceTask) {
var conf = configurations.mariadbDriver
configuration = conf
file = 'dependencies/' + conf.name + '.txt'
}
tasks.register('generateResourceForMCAuthLib', 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')
compileOnlyApi project(':common:common-api')
testImplementation project(':common:common-api')
2021-07-29 03:14:29 +02:00
// Unrelocate
compileOnlyApi project(':common:common-unrelocate')
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
// 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) {
exclude group: 'com.google.errorprone', module: 'error_prone_annotations'
}
2021-07-29 03:14:29 +02:00
// DynamicProxy
runtimeDownloadApi(libs.dynamicproxy)
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)
2022-01-25 18:14:16 +01:00
// Logging
2022-04-22 19:56:11 +02:00
compileOnly(libs.log4j.core)
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.adventure.serializer.ansi)
2022-04-22 19:56:11 +02:00
runtimeDownloadApi(libs.mcdiscordreserializer)
runtimeDownloadApi(libs.enhancedlegacytext)
2022-03-20 12:46:06 +01:00
// Database
hikari(libs.hikaricp)
2022-04-22 19:56:11 +02:00
h2Driver(libs.h2)
mysqlDriver(libs.mysql)
2023-07-09 20:03:48 +02:00
mariadbDriver(libs.mariadb)
2022-04-22 19:56:11 +02:00
// MinecraftAuthentication library
mcAuthLib(libs.minecraftauth.lib) {
exclude group: 'junit', module: 'junit'
exclude group: 'org.jetbrains', module: 'annotations'
}
2022-04-22 19:56:11 +02:00
// Brigadier
compileOnlyApi(libs.brigadier)
// Integrations
2022-04-22 19:56:11 +02:00
compileOnlyApi(libs.luckperms)
2021-07-29 03:14:29 +02:00
}
processResources {
2021-07-29 03:14:29 +02:00
dependsOn(
generateRuntimeDownloadResourceForRuntimeDownloadOnly,
generateResourceForHikari,
2021-07-29 03:14:29 +02:00
generateResourceForH2Driver,
generateResourceForMySQLDriver,
generateResourceForMariaDBDriver,
generateResourceForMCAuthLib
2021-07-29 03:14:29 +02:00
)
}
// Relocations in buildscript/relocations.gradle