Files
kotlin-fork/libraries/kotlin.test/common/build.gradle
T
Vyacheslav Gerasimov 697bb04d46 Build: Setup jvmTarget 1.6 for several common modules
Some modules depending on them target jvm 1.6 and can't depend on
jvm 1.8 module in Gradle 6.5.
2020-07-09 19:31:20 +03:00

34 lines
687 B
Groovy

description = 'Kotlin Test Common'
apply plugin: 'kotlin-platform-common'
configurePublishing(project)
jvmTarget = "1.6"
dependencies {
compile kotlinStdlib("common")
testCompile project(":kotlin-test:kotlin-test-annotations-common")
}
jar {
manifestAttributes(manifest, project, 'Test')
}
configureSourcesJar()
configureJavadocJar()
tasks.withType(org.jetbrains.kotlin.gradle.dsl.KotlinCompile) {
kotlinOptions.freeCompilerArgs += "-Xallow-kotlin-package"
}
compileKotlinCommon {
kotlinOptions {
freeCompilerArgs += [
"-module-name", project.name,
"-Xopt-in=kotlin.contracts.ExperimentalContracts",
]
}
}