diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 576c664..c7e52db 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - java-version: ['11', '17'] + java-version: ['17', '21'] steps: - uses: actions/checkout@v4 @@ -22,4 +22,4 @@ jobs: - name: Lint run: gradle spotlessCheck - name: Build & Test - run: gradle test -x spotlessApply + run: gradle test -x spotlessApply --info diff --git a/.github/workflows/mvn.yml b/.github/workflows/mvn.yml index 6017aba..766ab53 100644 --- a/.github/workflows/mvn.yml +++ b/.github/workflows/mvn.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - java-version: ['11', '17'] + java-version: ['11', '17', '21'] steps: - uses: actions/checkout@v4 diff --git a/build.gradle b/build.gradle index c442ed7..d1ff817 100644 --- a/build.gradle +++ b/build.gradle @@ -1,11 +1,12 @@ plugins { id 'application' id "com.diffplug.spotless" version "7.2.1" + id 'jvm-test-suite' } java { - sourceCompatibility = JavaVersion.VERSION_11 - targetCompatibility = JavaVersion.VERSION_11 + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 } repositories { @@ -22,7 +23,8 @@ dependencies { // ***** OAUTH DEPENDENCIES ***** implementation("com.slack.api:bolt-jetty:1.45.3") // ***** TEST DEPENDENCIES ***** - testImplementation('org.junit.jupiter:junit-jupiter-engine:5.13.4') + testImplementation('org.junit.jupiter:junit-jupiter-api:5.13.4') + testRuntimeOnly('org.junit.jupiter:junit-jupiter-engine:5.13.4') testImplementation('org.mockito:mockito-core:5.18.0') } @@ -30,8 +32,12 @@ application { mainClass = 'Main' } -tasks.named('test') { - useJUnit() +testing { + suites { + test { + useJUnitJupiter() + } + } } spotless {