Skip to content

Commit

Permalink
Bump Gradle wrapper from 7.2 to 7.3
Browse files Browse the repository at this point in the history
The new version came with a warning about buildSrc being configured
with different java bytecode versions for the kotlin and java compile
tasks, and while there's no java code in buildSrc the warning in and
of itself is an annoyance.
  • Loading branch information
rognan committed Nov 25, 2021
1 parent c3c3515 commit a50bcbf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,17 @@ fun readProperties(propertiesFile: File) = Properties().apply {
}
}

tasks.withType<JavaCompile>().configureEach {
options.release.set(8)
}

tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions {
jvmTarget = "1.8"
allWarningsAsErrors = true
}
}

tasks.check {
dependsOn(checkBuildConfiguration)
}
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-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

0 comments on commit a50bcbf

Please sign in to comment.