File tree Expand file tree Collapse file tree 1 file changed +6
-24
lines changed Expand file tree Collapse file tree 1 file changed +6
-24
lines changed Original file line number Diff line number Diff line change 11import org.jetbrains.dokka.gradle.DokkaTaskPartial
2+ import org.jetbrains.kotlin.gradle.dsl.JvmTarget
3+ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
24
35// Use `-Pgroup=com.github.UnitTestBot` to emulate JitPack publishing.
46val groupProp = providers.gradleProperty(" group" ).orNull
@@ -70,34 +72,14 @@ allprojects {
7072
7173 tasks {
7274 withType<JavaCompile > {
73- sourceCompatibility = " 1.8 "
75+ options.release = 8
7476 options.encoding = " UTF-8"
7577 options.compilerArgs.add(" -Xlint:all" )
7678 }
7779
78- compileJava {
79- targetCompatibility = " 1.8"
80- }
81- compileKotlin {
82- kotlinOptions {
83- jvmTarget = " 1.8"
84- }
85- }
86-
87- compileTestJava {
88- targetCompatibility = runtimeJavaVersion()
89- }
90- compileTestFixturesJava {
91- targetCompatibility = " 1.8"
92- }
93- compileTestKotlin {
94- kotlinOptions {
95- jvmTarget = runtimeJavaVersion()
96- }
97- }
98- compileTestFixturesKotlin {
99- kotlinOptions {
100- jvmTarget = " 1.8"
80+ withType<KotlinCompile > {
81+ compilerOptions {
82+ jvmTarget = JvmTarget .JVM_1_8
10183 }
10284 }
10385
You can’t perform that action at this time.
0 commit comments