Skip to content

Commit d8527b0

Browse files
authored
Merge pull request #641 from Fabricio20/master
Update spring dependencies
2 parents 4f2cbac + 4cadcc5 commit d8527b0

File tree

4 files changed

+40
-37
lines changed

4 files changed

+40
-37
lines changed

LavalinkServer/build.gradle

Lines changed: 33 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ apply plugin: "com.adarshr.test-logger"
1212
description = 'Play audio to discord voice channels'
1313
mainClassName = "lavalink.server.Launcher"
1414
version = "${versionFromTag()}".toString()
15+
1516
ext {
1617
moduleName = 'Lavalink-Server'
1718
}
@@ -20,15 +21,7 @@ ext {
2021
def versionVal = version
2122

2223
bootJar {
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

3427
sourceCompatibility = targetCompatibility = 11
@@ -45,38 +38,44 @@ bootRun {
4538
}
4639
}
4740

41+
configurations {
42+
compileOnly {
43+
extendsFrom annotationProcessor
44+
}
45+
}
46+
4847
dependencies {
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")
115118
String versionFromTag() {
116119

LavalinkServer/src/test/java/lavalink/server/config/RequestAuthorizationFilterTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33

44
import lavalink.server.info.AppInfo;
5-
import org.junit.Test;
6-
import org.junit.runner.RunWith;
5+
import org.junit.jupiter.api.Test;
6+
import org.junit.jupiter.api.extension.ExtendWith;
77
import org.springframework.beans.factory.annotation.Autowired;
88
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
99
import org.springframework.boot.test.context.SpringBootTest;
1010
import org.springframework.test.context.ActiveProfiles;
11-
import org.springframework.test.context.junit4.SpringRunner;
11+
import org.springframework.test.context.junit.jupiter.SpringExtension;
1212
import org.springframework.test.web.servlet.MockMvc;
1313

1414
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
@@ -18,7 +18,7 @@
1818
/**
1919
* Created by napster on 08.03.19.
2020
*/
21-
@RunWith(SpringRunner.class)
21+
@ExtendWith(SpringExtension.class)
2222
@AutoConfigureMockMvc
2323
@SpringBootTest()
2424
@ActiveProfiles({"test"})

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
buildscript {
22
ext {
3-
springBootVersion = '2.1.8.RELEASE'
3+
springBootVersion = '2.6.6'
44
gradleGitVersion = '1.5.2'
55
sonarqubeVersion = '2.6.2'
66
kotlinVersion = '1.3.61'
@@ -62,7 +62,7 @@ subprojects {
6262
lavaDspVersion = '0.7.7'
6363

6464
springBootVersion = "${springBootVersion}"
65-
springWebSocketVersion = '5.1.9.RELEASE'
65+
springWebSocketVersion = '5.3.17'
6666
logbackVersion = '1.2.3'
6767
sentryLogbackVersion = '1.7.7'
6868
oshiVersion = '5.7.4'
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.9-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)