Files
kotlin-fork/libraries/tools/binary-compatibility-validator/build.gradle
T
Alexander Udalov 2d41c7d462 Add module-info.java for standard Kotlin libraries
Using the new multi-release jar feature, store compiled
module-info.class files into META-INF/versions/9 instead of the artifact
root. Hopefully, this will break fewer tools which do not support
module-info.class files because any sane tool should not do anything
with files in META-INF because before Java 9 that directory only
contained resources.

Upgrade some Maven plugins to newer versions which do not fail on
module-info.class files

 #KT-21266 In Progress
2018-04-03 21:22:14 +02:00

52 lines
1.5 KiB
Groovy

apply plugin: 'kotlin'
configurations {
testArtifacts
}
dependencies {
compile project(':kotlin-stdlib')
compile 'org.ow2.asm:asm-debug-all:6.0_BETA'
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", "-Xnormalize-constructor-calls=enable"]
}
}
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'
}