Skip to content

Commit

Permalink
fix: support for Java 8 was dropped unexpectedly
Browse files Browse the repository at this point in the history
GroovyCompile task still has no support for `--release` option, so
use the legacy way to configure the JavaVersion for source/target version.
  • Loading branch information
KengoTODA committed Feb 21, 2021
1 parent af81287 commit 25b7f8b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ plugins {
id 'org.sonarqube' version '3.1.1'
}

sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
group = 'com.github.spotbugs.snom'

repositories {
Expand All @@ -33,10 +35,6 @@ dependencies {
testImplementation 'com.tngtech.archunit:archunit:0.16.0'
}

tasks.withType(JavaCompile).configureEach {
options.release = 8
}

tasks.named('groovydoc') {
docTitle 'SpotBugs Gradle Plugin'
link 'https://docs.gradle.org/current/javadoc/', 'org.gradle.api.'
Expand Down

0 comments on commit 25b7f8b

Please sign in to comment.