Skip to content

Commit

Permalink
add jdk 17 support
Browse files Browse the repository at this point in the history
  • Loading branch information
rpalcolea committed Oct 13, 2021
1 parent 916c0f6 commit 0a4fc0b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nebula.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
strategy:
matrix:
# test against latest update of some major Java version(s), as well as specific LTS version(s)
java: [ 8, 11 ]
java: [ 8, 11, 17]
name: Gradle Build without Publish
steps:
- uses: actions/checkout@v1
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
distributionUrl=https://services.gradle.org/distributions/gradle-7.3-rc-1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
7 changes: 6 additions & 1 deletion src/main/groovy/nebula/test/AbstractProjectSpec.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import groovy.transform.CompileStatic
import nebula.test.multiproject.MultiProjectHelper
import org.gradle.api.Project
import org.gradle.testfixtures.ProjectBuilder
import org.gradle.testfixtures.internal.ProjectBuilderImpl
import org.junit.Rule
import org.junit.rules.TestName
import spock.lang.Specification
Expand Down Expand Up @@ -34,7 +35,11 @@ public abstract class AbstractProjectSpec extends Specification {
}
ourProjectDir.mkdirs()
canonicalName = testName.getMethodName().replaceAll(' ', '-')
project = ProjectBuilder.builder().withName(canonicalName).withProjectDir(ourProjectDir).build()
ProjectBuilder builder = ProjectBuilder.builder().withName(canonicalName).withProjectDir(ourProjectDir)
try {
ProjectBuilderImpl.getGlobalServices()
} catch (Throwable ignore) { }
project = builder.build()
helper = new MultiProjectHelper(project)
}

Expand Down

0 comments on commit 0a4fc0b

Please sign in to comment.