Skip to content

Commit 770796e

Browse files
fix: broken gradle CI (#378)
* fix: broken gradle CI * Update build.gradle * add info logging to tests
1 parent a8535c6 commit 770796e

3 files changed

Lines changed: 14 additions & 8 deletions

File tree

.github/workflows/gradle.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
java-version: ['11', '17']
13+
java-version: ['17', '21']
1414

1515
steps:
1616
- uses: actions/checkout@v4
@@ -22,4 +22,4 @@ jobs:
2222
- name: Lint
2323
run: gradle spotlessCheck
2424
- name: Build & Test
25-
run: gradle test -x spotlessApply
25+
run: gradle test -x spotlessApply --info

.github/workflows/mvn.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
java-version: ['11', '17']
13+
java-version: ['11', '17', '21']
1414

1515
steps:
1616
- uses: actions/checkout@v4

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)