40 lines
787 B
Groovy
40 lines
787 B
Groovy
description = 'Kotlin Test Common'
|
|
|
|
apply plugin: 'kotlin-platform-common'
|
|
|
|
configurePublishing(project)
|
|
|
|
dependencies {
|
|
compile kotlinStdlib("common")
|
|
testCompile project(":kotlin-test:kotlin-test-annotations-common")
|
|
}
|
|
|
|
jar {
|
|
manifestAttributes(manifest, project, 'Test')
|
|
}
|
|
|
|
task sourcesJar(type: Jar, dependsOn: classes) {
|
|
classifier = 'sources'
|
|
from sourceSets.main.kotlin
|
|
}
|
|
|
|
artifacts {
|
|
archives sourcesJar
|
|
}
|
|
|
|
javadocJar()
|
|
|
|
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",
|
|
]
|
|
}
|
|
}
|
|
|