Files
kotlin-fork/libraries/scripting/common/build.gradle.kts
T
Alexander Udalov 2e515f3945 Prohibit JVM target 1.6
But still compile stdlib, reflect, kotlin.test and scripting runtimes
with JVM target 1.6 to simplify migration from Kotlin 1.6 to 1.7.

 #KT-45165 Fixed
2022-04-19 22:54:40 +02:00

31 lines
585 B
Kotlin

plugins {
kotlin("jvm")
id("jps-compatible")
}
project.updateJvmTarget("1.6")
dependencies {
api(kotlinStdlib())
compileOnly(project(":kotlin-reflect-api"))
testApi(commonDependency("junit"))
kotlinCompilerClasspath(project(":libraries:tools:stdlib-compiler-classpath"))
}
sourceSets {
"main" { projectDefault() }
"test" { projectDefault() }
}
tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinCompile<*>> {
kotlinOptions.freeCompilerArgs += listOf(
"-Xallow-kotlin-package"
)
}
publish()
runtimeJar()
sourcesJar()
javadocJar()