binary-compatibility-validator: depend on required artifacts to ensure they are built.

Read dumped declarations lazily in order not to fail on class initialization.
This commit is contained in:
Ilya Gorbunov
2017-04-14 21:17:08 +03:00
parent 94895c4e4d
commit 723642c9d4
2 changed files with 14 additions and 3 deletions
@@ -1,10 +1,22 @@
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-reflect')
// legacy
testArtifacts project(':kotlin-runtime')
testArtifacts files(project(':kotlin-stdlib').tasks.originalStdlibJar)
}
sourceSets {
@@ -23,8 +35,7 @@ compileTestKotlin {
test {
dependsOn cleanCompileTestKotlin
dependsOn(':kotlin-runtime:jar')
dependsOn(':kotlin-stdlib:originalStdlibJar')
dependsOn configurations.testArtifacts
systemProperties['overwrite.output'] = System.getProperty("overwrite.output", "false")
jvmArgs '-ea'