32 lines
765 B
Groovy
32 lines
765 B
Groovy
description = 'Kotlin Test Common'
|
|
|
|
apply plugin: 'kotlin-platform-common'
|
|
|
|
JvmToolchain.updateJvmTarget(project, "1.8")
|
|
|
|
dependencies {
|
|
api RepoDependencies.kotlinStdlib(project)
|
|
testApi project(":kotlin-test:kotlin-test-annotations-common")
|
|
}
|
|
|
|
jar {
|
|
LibrariesCommon.manifestAttributes(project, manifest, 'Test')
|
|
}
|
|
|
|
RepoArtifacts.sourcesJar(project)
|
|
RepoArtifacts.javadocJar(project)
|
|
|
|
tasks.withType(org.jetbrains.kotlin.gradle.dsl.KotlinCompile) {
|
|
kotlinOptions.freeCompilerArgs += ["-Xallow-kotlin-package", "-opt-in=kotlin.RequiresOptIn"]
|
|
}
|
|
|
|
compileKotlinCommon {
|
|
kotlinOptions {
|
|
freeCompilerArgs += [
|
|
"-module-name", project.name,
|
|
"-opt-in=kotlin.contracts.ExperimentalContracts",
|
|
]
|
|
}
|
|
}
|
|
|