diff options
author | Roman Elizarov <elizarov@gmail.com> | 2020-03-24 17:09:36 +0300 |
---|---|---|
committer | Roman Elizarov <elizarov@gmail.com> | 2020-03-24 17:28:17 +0300 |
commit | d4025534669847121c8a55499e5240a00f3b2396 (patch) | |
tree | f51f361fb3d91c807f40d6dd421b5db3c2066054 | |
parent | a258d236108d4184d58100aac098beb9d47680f3 (diff) | |
download | kotlinx.atomicfu-d4025534669847121c8a55499e5240a00f3b2396.tar.gz |
Fix JVM metadata in atomicfu-gradle-plugin
-rw-r--r-- | build.gradle | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/build.gradle b/build.gradle index 9758c82..d399768 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,5 @@ /* - * Copyright 2017-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. + * Copyright 2016-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. */ import org.jetbrains.kotlin.konan.target.HostManager @@ -78,6 +78,14 @@ allprojects { if (project != rootProject && project.name != 'atomicfu-native') { apply from: rootProject.file("gradle/publish-bintray.gradle") } + + // This fixes "org.gradle.jvm.version" in Gradle metadata + plugins.withType(JavaPlugin) { + java { + sourceCompatibility = JavaVersion.VERSION_1_8 + targetCompatibility = JavaVersion.VERSION_1_8 + } + } } println("Using Kotlin compiler version: $org.jetbrains.kotlin.config.KotlinCompilerVersion.VERSION") |