55 lines
1.5 KiB
Groovy
55 lines
1.5 KiB
Groovy
![]() |
plugins {
|
||
|
id 'java'
|
||
|
id 'application'
|
||
|
id 'com.github.johnrengelman.shadow' version '7.1.2'
|
||
|
}
|
||
|
|
||
|
group 'com.gamesinteractive'
|
||
|
version '1.0-SNAPSHOT'
|
||
|
|
||
|
mainClassName = 'server.Server'
|
||
|
|
||
|
repositories {
|
||
|
mavenCentral()
|
||
|
}
|
||
|
|
||
|
dependencies {
|
||
|
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.6.0'
|
||
|
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
|
||
|
|
||
|
// libs
|
||
|
implementation files('lib/mina-core-2.0.0-M6.jar')
|
||
|
implementation files('lib/mysql-connector-java-8.0.21.jar')
|
||
|
implementation files('lib/org.json.jar')
|
||
|
implementation files('lib/slf4j-api-1.5.8.jar')
|
||
|
implementation files('lib/slf4j-jdk14-1.5.8.jar')
|
||
|
implementation files('lib/gson-2.8.6.jar')
|
||
|
|
||
|
// mongo - latest stable release
|
||
|
implementation 'org.mongodb:mongodb-driver-sync:5.2.0'
|
||
|
// discord bot integration
|
||
|
implementation 'org.javacord:javacord:3.8.0'
|
||
|
implementation 'org.apache.logging.log4j:log4j-core:2.19.0'
|
||
|
// jackson
|
||
|
implementation 'com.fasterxml.jackson.core:jackson-core:2.13.0'
|
||
|
implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.0'
|
||
|
}
|
||
|
|
||
|
test {
|
||
|
useJUnitPlatform()
|
||
|
jvmArgs += ["--add-exports", "jdk.scripting.nashorn/jdk.nashorn.internal.parser=ALL-UNNAMED"]
|
||
|
}
|
||
|
|
||
|
tasks.withType(JavaCompile) {
|
||
|
options.compilerArgs += ["--add-exports", "jdk.scripting.nashorn/jdk.nashorn.internal.parser=ALL-UNNAMED"]
|
||
|
}
|
||
|
|
||
|
jar {
|
||
|
manifest {
|
||
|
attributes 'Main-Class': 'server.Server'
|
||
|
}
|
||
|
}
|
||
|
|
||
|
application {
|
||
|
applicationDefaultJvmArgs = ["--add-exports", "jdk.scripting.nashorn/jdk.nashorn.internal.parser=ALL-UNNAMED"]
|
||
|
}
|