45 lines
808 B
Groovy
45 lines
808 B
Groovy
|
plugins {
|
||
|
id 'java'
|
||
|
id 'application'
|
||
|
}
|
||
|
|
||
|
repositories {
|
||
|
jcenter()
|
||
|
mavenCentral()
|
||
|
}
|
||
|
|
||
|
apply plugin : 'java'
|
||
|
ext {
|
||
|
javaMainClass = 'xyz.vallat.louis.App'
|
||
|
}
|
||
|
|
||
|
|
||
|
application {
|
||
|
getMainClass().set(javaMainClass)
|
||
|
}
|
||
|
|
||
|
application {
|
||
|
// Define the main class for the application.
|
||
|
mainClass = javaMainClass
|
||
|
}
|
||
|
|
||
|
jar {
|
||
|
manifest {
|
||
|
attributes 'Main-Class': javaMainClass
|
||
|
}
|
||
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||
|
|
||
|
from {
|
||
|
configurations.runtimeClasspath.findAll { it.name.endsWith('jar') }.collect { zipTree(it) }
|
||
|
}
|
||
|
}
|
||
|
|
||
|
dependencies {
|
||
|
testImplementation 'junit:junit:4.13'
|
||
|
implementation 'com.discord4j:discord4j-core:3.1.1'
|
||
|
implementation 'ch.qos.logback:logback-classic:1.2.3'
|
||
|
implementation 'org.postgresql:postgresql:42.2.18.jre7'
|
||
|
}
|
||
|
|
||
|
|