Files
kotlin-fork/libraries/tools/binary-compatibility-validator/build.gradle
T
Alexander Udalov e253acd5fd Introduce kotlin-stdlib-jdk7/8 libraries, deprecate kotlin-stdlib-jre7/8
The idea is to keep all declarations in the same packages from Kotlin's
point of view, but use JvmPackageName annotation to move them to another
JVM package, to avoid the split package problem which is otherwise
unsolvable when using module path on Java 9 (KT-19258).

In this commit, kotlin-stdlib-jre7/8 are moved to kotlin-stdlib-jdk7/8
and in the subsequent commit, -jre7/8 are restored. This is done in
order to make Git recognize this as a file move to preserve history.

Include new stdlib-jdkN artifacts in manifest version tests.
2017-10-11 19:20:24 +03:00

51 lines
1.4 KiB
Groovy

apply plugin: 'kotlin'
configurations {
testArtifacts
}
dependencies {
compile project(':kotlin-stdlib')
compile 'org.ow2.asm:asm-debug-all:5.0.4'
compile 'com.google.code.gson:gson:2.6.2'
testCompile project(':kotlin-test:kotlin-test-junit')
testArtifacts project(':kotlin-stdlib')
testArtifacts project(':kotlin-stdlib-jre7')
testArtifacts project(':kotlin-stdlib-jre8')
testArtifacts project(':kotlin-stdlib-jdk7')
testArtifacts project(':kotlin-stdlib-jdk8')
testArtifacts project(':kotlin-reflect')
// legacy
// testArtifacts project(':kotlin-runtime')
testArtifacts files(project(':kotlin-stdlib').tasks.originalStdlibJar)
}
sourceSets {
test {
java {
srcDir "src/test/kotlin"
}
}
}
def testCasesDeclarationsDump = "${buildDir}/cases-declarations.json".toString()
compileTestKotlin {
kotlinOptions {
freeCompilerArgs = ["-Xdump-declarations-to=$testCasesDeclarationsDump"]
}
}
test {
dependsOn cleanCompileTestKotlin
dependsOn configurations.testArtifacts
systemProperty 'overwrite.output', System.getProperty("overwrite.output", "false")
systemProperty 'kotlinVersion', project.version
systemProperty 'testCasesClassesDirs', sourceSets.test.output.classesDirs.asPath
systemProperty 'testCasesDeclarations', testCasesDeclarationsDump
jvmArgs '-ea'
ignoreFailures = System.getenv("kotlin_build_ignore_test_failures") == 'yes'
}