62 lines
1.6 KiB
Groovy
62 lines
1.6 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id 'application'
|
|
id 'com.github.johnrengelman.shadow' version '7.1.2'
|
|
}
|
|
|
|
group 'dev.ubujira'
|
|
version '1.0-SNAPSHOT'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven {
|
|
name 'm2-dv8tion'
|
|
url 'https://m2.dv8tion.net/releases'
|
|
}
|
|
maven {
|
|
name 'ubujira'
|
|
url 'https://maven.ubujira.dev/'
|
|
}
|
|
maven {
|
|
name 'jitpack'
|
|
url 'https://jitpack.io'
|
|
}
|
|
}
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion = JavaLanguageVersion.of(17)
|
|
}
|
|
}
|
|
|
|
application {
|
|
mainClassName = 'dev.ubujira.galaxusbot.GalaxusBot'
|
|
}
|
|
|
|
configurations.all {
|
|
// Check for updates every build
|
|
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
|
|
}
|
|
|
|
tasks.withType(JavaCompile).each {
|
|
it.options.compilerArgs.add('--enable-preview');
|
|
}
|
|
|
|
dependencies {
|
|
implementation "com.github.freya022:JDA:e3a42e2dcd7076adc935fff6f9c290401d6b6561"
|
|
implementation 'com.github.freya022:BotCommands:9b301d1ed44635bada36abf95b923351097e5c51'
|
|
implementation 'dev.ubujira:Galaxus-API:0.5.1'
|
|
implementation 'com.google.guava:guava:31.1-jre'
|
|
implementation 'org.apache.logging.log4j:log4j-api:2.17.2'
|
|
implementation 'org.apache.logging.log4j:log4j-core:2.17.2'
|
|
implementation 'org.postgresql:postgresql:42.3.4'
|
|
implementation 'com.zaxxer:HikariCP:5.0.1'
|
|
|
|
compileOnly 'org.projectlombok:lombok:1.18.24'
|
|
annotationProcessor 'org.projectlombok:lombok:1.18.24'
|
|
testCompileOnly 'org.projectlombok:lombok:1.18.24'
|
|
testAnnotationProcessor 'org.projectlombok:lombok:1.18.24'
|
|
|
|
implementation 'org.apache.logging.log4j:log4j-slf4j-impl:2.17.2'
|
|
}
|