File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11plugins {
22 id ' application'
33 id " com.diffplug.spotless" version " 7.2.1"
4+ id ' jvm-test-suite'
45}
56
67java {
7- sourceCompatibility = JavaVersion . VERSION_11
8- targetCompatibility = JavaVersion . VERSION_11
8+ sourceCompatibility = JavaVersion . VERSION_17
9+ targetCompatibility = JavaVersion . VERSION_17
910}
1011
1112repositories {
@@ -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
2931application {
3032 mainClass = ' Main'
3133}
3234
33- tasks. named(' test' ) {
34- useJUnit()
35+ testing {
36+ suites {
37+ test {
38+ useJUnitJupiter()
39+ }
40+ }
3541}
3642
3743spotless {
You can’t perform that action at this time.
0 commit comments