@@ -12,6 +12,7 @@ apply plugin: "com.adarshr.test-logger"
1212description = ' Play audio to discord voice channels'
1313mainClassName = " lavalink.server.Launcher"
1414version = " ${ versionFromTag()} " . toString()
15+
1516ext {
1617 moduleName = ' Lavalink-Server'
1718}
2021def versionVal = version
2122
2223bootJar {
23- doLast {
24- // copies the jar into a place where the Dockerfile can find it easily (and users maybe too)
25- copy {
26- from(" build/libs/Lavalink-Server-${ versionVal} .jar" )
27- into(" build/libs/" )
28-
29- rename(" .*" , " Lavalink.jar" )
30- }
31- }
24+ archiveFileName = " Lavalink.jar"
3225}
3326
3427sourceCompatibility = targetCompatibility = 11
@@ -45,38 +38,44 @@ bootRun {
4538 }
4639}
4740
41+ configurations {
42+ compileOnly {
43+ extendsFrom annotationProcessor
44+ }
45+ }
46+
4847dependencies {
49- compile project(" :plugin-api" )
50- compile (group : ' moe.kyokobot.koe' , name : ' core' , version : koeVersion) {
48+ implementation project(" :plugin-api" )
49+ implementation (group : ' moe.kyokobot.koe' , name : ' core' , version : koeVersion) {
5150 // This version of SLF4J does not recognise Logback 1.2.3
5251 exclude group : " org.slf4j" , module : " slf4j-api"
5352 }
54- compile group : ' moe.kyokobot.koe' , name : ' ext-udpqueue' , version : koeVersion
55- compile group : ' com.github.walkyst' , name : ' lavaplayer-fork' , version : lavaplayerVersion
53+ implementation group : ' moe.kyokobot.koe' , name : ' ext-udpqueue' , version : koeVersion
54+ implementation group : ' com.github.walkyst' , name : ' lavaplayer-fork' , version : lavaplayerVersion
5655
57- // compile group: 'com.sedmelluq', name: 'lavaplayer', version: lavaplayerVersion
58- compile (group : ' com.sedmelluq' , name : ' lavaplayer-ext-youtube-rotator' , version : lavaplayerIpRotatorVersion) {
56+ // implementation group: 'com.sedmelluq', name: 'lavaplayer', version: lavaplayerVersion
57+ implementation (group : ' com.sedmelluq' , name : ' lavaplayer-ext-youtube-rotator' , version : lavaplayerIpRotatorVersion) {
5958 exclude group : ' com.sedmelluq' , module : ' lavaplayer'
6059 }
61- compile group : ' com.github.natanbc' , name : ' lavadsp' , version : lavaDspVersion
62- compile group : ' org.jetbrains.kotlin' , name : ' kotlin-reflect' , version : kotlinVersion
63-
64- compile group : ' org.springframework' , name : ' spring-websocket' , version : springWebSocketVersion
65- compile group : ' ch.qos.logback' , name : ' logback-classic' , version : logbackVersion
66- compile group : ' io.sentry' , name : ' sentry-logback' , version : sentryLogbackVersion
67- compile group : ' com.github.oshi' , name : ' oshi-core' , version : oshiVersion
68- compile group : ' org.json' , name : ' json' , version : jsonOrgVersion
69- compile group : ' com.google.code.gson' , name : ' gson' , version : gsonVersion
70- compile (group : ' org.springframework.boot' , name : ' spring-boot-starter-web' , version : springBootVersion) {
60+ implementation group : ' com.github.natanbc' , name : ' lavadsp' , version : lavaDspVersion
61+ implementation group : ' org.jetbrains.kotlin' , name : ' kotlin-reflect' , version : kotlinVersion
62+
63+ implementation group : ' org.springframework' , name : ' spring-websocket' , version : springWebSocketVersion
64+ implementation group : ' ch.qos.logback' , name : ' logback-classic' , version : logbackVersion
65+ implementation group : ' io.sentry' , name : ' sentry-logback' , version : sentryLogbackVersion
66+ implementation group : ' com.github.oshi' , name : ' oshi-core' , version : oshiVersion
67+ implementation group : ' org.json' , name : ' json' , version : jsonOrgVersion
68+ implementation group : ' com.google.code.gson' , name : ' gson' , version : gsonVersion
69+ implementation (group : ' org.springframework.boot' , name : ' spring-boot-starter-web' , version : springBootVersion) {
7170 exclude group : ' org.springframework.boot' , module : ' spring-boot-starter-tomcat'
7271 }
73- compile group : ' org.springframework.boot' , name : ' spring-boot-starter-undertow' , version : springBootVersion
72+ implementation group : ' org.springframework.boot' , name : ' spring-boot-starter-undertow' , version : springBootVersion
7473 compileOnly group : ' com.github.spotbugs' , name : ' spotbugs-annotations' , version : spotbugsAnnotationsVersion
7574
76- compile group : ' io.prometheus' , name : ' simpleclient' , version : prometheusVersion
77- compile group : ' io.prometheus' , name : ' simpleclient_hotspot' , version : prometheusVersion
78- compile group : ' io.prometheus' , name : ' simpleclient_logback' , version : prometheusVersion
79- compile group : ' io.prometheus' , name : ' simpleclient_servlet' , version : prometheusVersion
75+ implementation group : ' io.prometheus' , name : ' simpleclient' , version : prometheusVersion
76+ implementation group : ' io.prometheus' , name : ' simpleclient_hotspot' , version : prometheusVersion
77+ implementation group : ' io.prometheus' , name : ' simpleclient_logback' , version : prometheusVersion
78+ implementation group : ' io.prometheus' , name : ' simpleclient_servlet' , version : prometheusVersion
8079
8180 testImplementation group : ' org.springframework.boot' , name : ' spring-boot-starter-test' , version : springBootVersion
8281}
@@ -111,6 +110,10 @@ compileTestKotlin {
111110 }
112111}
113112
113+ tasks. named(' test' ) {
114+ useJUnitPlatform()
115+ }
116+
114117@SuppressWarnings (" GrMethodMayBeStatic" )
115118String versionFromTag () {
116119
0 commit comments