d2aae67e03
Use dependency helper function that chooses whether to take them from the bootstrap repository or from a configuration of kotlin-test KT-61969
35 lines
848 B
Groovy
35 lines
848 B
Groovy
apply plugin: 'kotlin'
|
|
|
|
configurations {
|
|
testArtifacts
|
|
}
|
|
|
|
dependencies {
|
|
api("org.jetbrains.kotlinx:binary-compatibility-validator:0.13.0")
|
|
api("org.jetbrains.kotlinx:kotlinx-metadata-jvm:0.7.0")
|
|
|
|
testApi RepoDependencies.kotlinTest(project, "junit")
|
|
|
|
testArtifacts project(':kotlin-stdlib')
|
|
testArtifacts project(':kotlin-stdlib-jdk7')
|
|
testArtifacts project(':kotlin-stdlib-jdk8')
|
|
testArtifacts project(':kotlin-reflect')
|
|
}
|
|
|
|
sourceSets {
|
|
test {
|
|
java {
|
|
srcDir "src/test/kotlin"
|
|
}
|
|
}
|
|
}
|
|
|
|
test {
|
|
dependsOn configurations.testArtifacts
|
|
|
|
systemProperty 'overwrite.output', System.getProperty("overwrite.output", "false")
|
|
systemProperty 'kotlinVersion', project.version
|
|
systemProperty 'testCasesClassesDirs', sourceSets.test.output.classesDirs.asPath
|
|
jvmArgs '-ea'
|
|
}
|