34 lines
857 B
Groovy
34 lines
857 B
Groovy
plugins {
|
|
id 'com.gradleup.shadow' version '8.3.5'
|
|
id 'java'
|
|
}
|
|
|
|
group = 'com.leohabrom'
|
|
version = '1.0-SNAPSHOT'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
tasks.withType(JavaExec) {
|
|
systemProperty "java.library.path", file("${projectDir}/lib").absolutePath
|
|
}
|
|
dependencies {
|
|
testImplementation platform('org.junit:junit-bom:5.10.0')
|
|
testImplementation 'org.junit.jupiter:junit-jupiter'
|
|
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
|
|
implementation files('lib/DiscordLib.jar')
|
|
implementation 'com.google.code.gson:gson:2.13.2'
|
|
implementation 'com.github.hypfvieh:dbus-java-core:5.2.0'
|
|
implementation 'com.github.hypfvieh:dbus-java-transport-native-unixsocket:5.2.0'
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
tasks.shadowJar {
|
|
manifest {
|
|
attributes["Main-Class"] = "com.leohabrom.discordrpc.Main"
|
|
}
|
|
} |