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' }