29d2679e8d
This change avoids compiling kotlin-compiler-embeddable, kotlin-gradle-plugin, and other gradle plugins, when running `./gradlew dist`
42 lines
899 B
Groovy
42 lines
899 B
Groovy
|
|
description = 'Kotlin Test'
|
|
|
|
apply plugin: 'kotlin-platform-jvm'
|
|
|
|
configureJvm6Project(project)
|
|
configureDist(project)
|
|
configurePublishing(project)
|
|
|
|
dependencies {
|
|
expectedBy project(':kotlin-test:kotlin-test-common')
|
|
compile project(':kotlin-stdlib')
|
|
testCompile project(":kotlin-test:kotlin-test-junit")
|
|
testCompile('junit:junit:4.12')
|
|
}
|
|
|
|
|
|
archivesBaseName = 'kotlin-test'
|
|
|
|
jar {
|
|
manifestAttributes(manifest, project, 'Test')
|
|
}
|
|
|
|
artifacts {
|
|
archives sourcesJar
|
|
archives javadocJar
|
|
}
|
|
|
|
dist {
|
|
from (jar, sourcesJar)
|
|
}
|
|
|
|
compileKotlin {
|
|
// TODO: Why "-Xmulti-platfrom" ?
|
|
kotlinOptions.freeCompilerArgs = ["-Xallow-kotlin-package", "-Xnormalize-constructor-calls=enable",
|
|
"-Xmulti-platform", "-module-name", project.archivesBaseName]
|
|
}
|
|
|
|
compileTestKotlin {
|
|
kotlinOptions.freeCompilerArgs = ["-Xallow-kotlin-package"]
|
|
}
|