Skip to content

Commit 8609f0d

Browse files
Update build.gradle
1 parent eaf3d6b commit 8609f0d

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

build.gradle

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
plugins {
22
id 'application'
33
id "com.diffplug.spotless" version "7.2.1"
4+
id 'jvm-test-suite'
45
}
56

67
java {
7-
sourceCompatibility = JavaVersion.VERSION_11
8-
targetCompatibility = JavaVersion.VERSION_11
8+
sourceCompatibility = JavaVersion.VERSION_17
9+
targetCompatibility = JavaVersion.VERSION_17
910
}
1011

1112
repositories {
@@ -22,16 +23,21 @@ dependencies {
2223
// ***** OAUTH DEPENDENCIES *****
2324
implementation("com.slack.api:bolt-jetty:1.45.3")
2425
// ***** TEST DEPENDENCIES *****
25-
testImplementation('org.junit.jupiter:junit-jupiter-engine:5.13.4')
26+
testImplementation('org.junit.jupiter:junit-jupiter-api:5.13.4')
27+
testRuntimeOnly('org.junit.jupiter:junit-jupiter-engine:5.13.4')
2628
testImplementation('org.mockito:mockito-core:5.18.0')
2729
}
2830

2931
application {
3032
mainClass = 'Main'
3133
}
3234

33-
tasks.named('test') {
34-
useJUnit()
35+
testing {
36+
suites {
37+
test {
38+
useJUnitJupiter()
39+
}
40+
}
3541
}
3642

3743
spotless {

0 commit comments

Comments
 (0)