Skip to content

Commit

Permalink
Target JDK8 (#1074)
Browse files Browse the repository at this point in the history
Fixes #1068.
  • Loading branch information
rschmitt committed Dec 15, 2023
1 parent ae878ee commit b3b17a3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- run: |
echo Verifying the java version used in class files...
cd build/classes/kotlin/main
javap -v com.github.spotbugs.snom.SpotBugsPlugin | grep -q 'major version: 55'
javap -v com.github.spotbugs.snom.SpotBugsPlugin | grep -q 'major version: 52'
- name: Run Semantic Release
run: |
echo "gradle.publish.key=${{ secrets.GRADLE_PUBLISH_KEY }}" > ~/.gradle/gradle.properties
Expand Down
7 changes: 7 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import io.gitlab.arturbosch.detekt.Detekt
import org.jetbrains.dokka.gradle.DokkaTask
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
groovy
Expand Down Expand Up @@ -54,6 +55,12 @@ signing {
}

tasks {
withType<JavaCompile> {
options.release.set(8)
}
withType<KotlinCompile>().configureEach {
kotlinOptions.jvmTarget = "1.8"
}
named<Detekt>("detekt") {
reports {
sarif.required = true
Expand Down

0 comments on commit b3b17a3

Please sign in to comment.