2024-06-10 05:17:55 +02:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
|
|
|
}
|
|
|
|
|
2024-06-12 11:05:23 +02:00
|
|
|
group = 'de.com.baseband.bot'
|
2024-06-10 05:17:55 +02:00
|
|
|
version = '1.0-SNAPSHOT'
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
2024-06-25 04:27:30 +02:00
|
|
|
maven { url = 'https://git.tudbut.de/api/packages/TudbuT/maven' }
|
|
|
|
maven { url = 'https://git.tudbut.de/api/packages/BaseBand/maven' }
|
2024-06-10 05:17:55 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
configurations {
|
|
|
|
jarLibs
|
2024-06-25 06:44:26 +02:00
|
|
|
reloadQuickly {
|
2024-06-25 08:24:30 +02:00
|
|
|
resolutionStrategy.cacheDynamicVersionsFor(30, 'seconds')
|
|
|
|
resolutionStrategy.cacheChangingModulesFor(30, 'seconds')
|
2024-06-25 05:35:36 +02:00
|
|
|
}
|
2024-06-10 05:17:55 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.0'
|
|
|
|
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.10.0'
|
|
|
|
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.0'
|
|
|
|
|
2024-06-29 10:32:24 +02:00
|
|
|
reloadQuickly jarLibs('de.tudbut:tuddylib:+')
|
2024-06-11 03:57:58 +02:00
|
|
|
|
2024-06-25 06:44:26 +02:00
|
|
|
reloadQuickly jarLibs("net.dv8tion:JDA:5.0.0-beta.24")
|
2024-06-10 05:17:55 +02:00
|
|
|
|
|
|
|
implementation configurations.jarLibs
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
jar {
|
|
|
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
|
|
|
|
|
|
|
from {
|
|
|
|
configurations.jarLibs.collect {
|
|
|
|
it.isDirectory() ? it : zipTree(it)
|
|
|
|
}
|
|
|
|
} {
|
|
|
|
exclude "LICENSE.txt", "META-INF/MANIFSET.MF", "META-INF/maven/**", "META-INF/*.RSA", "META-INF/*.SF"
|
|
|
|
}
|
|
|
|
|
|
|
|
manifest.attributes(
|
2024-06-12 11:05:23 +02:00
|
|
|
'Main-Class': 'de.com.baseband.bot.Main',
|
2024-06-10 05:17:55 +02:00
|
|
|
)
|
2024-06-10 18:17:54 +02:00
|
|
|
|
|
|
|
archiveFileName = "BaseBand-Discord.jar"
|
2024-06-10 05:17:55 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
test {
|
|
|
|
useJUnitPlatform()
|
|
|
|
}
|