accbd07b2e
- Mark @ContractsDsl as @Experimental - Move Contracts DSL out from 'internal' package - Change visibility of ContractsDsl from 'internal' to 'public' ^KT-25274 Fixed ^KT-25495 Fixed
43 lines
861 B
Groovy
43 lines
861 B
Groovy
description = 'Kotlin Test Common'
|
|
|
|
apply plugin: 'kotlin-platform-common'
|
|
apply plugin: 'pill-configurable'
|
|
|
|
configureDist(project)
|
|
configurePublishing(project)
|
|
|
|
|
|
dependencies {
|
|
compile project(':kotlin-stdlib-common')
|
|
testCompile project(":kotlin-test:kotlin-test-annotations-common")
|
|
}
|
|
|
|
pill {
|
|
importAsLibrary = true
|
|
}
|
|
|
|
jar {
|
|
manifestAttributes(manifest, project, 'Test')
|
|
}
|
|
|
|
task sourcesJar(type: Jar, dependsOn: classes) {
|
|
classifier = 'sources'
|
|
from sourceSets.main.kotlin
|
|
}
|
|
|
|
classes.dependsOn.remove("compileJava")
|
|
|
|
artifacts {
|
|
archives sourcesJar
|
|
archives javadocJar
|
|
}
|
|
|
|
compileKotlinCommon {
|
|
kotlinOptions {
|
|
freeCompilerArgs = [
|
|
"-module-name", project.name,
|
|
"-Xallow-kotlin-package",
|
|
"-Xuse-experimental=kotlin.contracts.ExperimentalContracts"
|
|
]
|
|
}
|
|
} |