Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Commit

Permalink
Add more Java versions into test matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
Goooler authored Jul 31, 2024
1 parent 67caa4b commit 450f902
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@ jobs:
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
# Always test on the latest version and all LTS.
java: [ 11, 17, 21, 22 ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 21
java-version: ${{ matrix.java }}
- uses: gradle/actions/setup-gradle@v3
with:
gradle-home-cache-cleanup: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ package com.github.jengelman.gradle.plugins.shadow

import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import com.github.jengelman.gradle.plugins.shadow.util.PluginSpecification
import org.gradle.api.JavaVersion
import org.gradle.api.Project
import org.gradle.api.artifacts.Configuration
import org.gradle.api.plugins.JavaPlugin
import org.gradle.testfixtures.ProjectBuilder
import org.gradle.testkit.runner.BuildResult
import spock.lang.Ignore
import spock.lang.IgnoreIf
import spock.lang.Issue
import spock.lang.Unroll

Expand Down Expand Up @@ -52,6 +54,10 @@ class ShadowPluginSpec extends PluginSpecification {

}

@IgnoreIf({
// Gradle 8.3 doesn't support Java 21.
JavaVersion.current().majorVersion.toInteger() >= 21
})
@Unroll
def 'Compatible with Gradle #version'() {
given:
Expand Down

0 comments on commit 450f902

Please sign in to comment.