Do not produce libraries json declarations dump

It's no longer needed for checking binary compatibility.
Clean build of these libraries is no longer required too.

Cleanup build.gradle of binary-compatibility-validator.
This commit is contained in:
Ilya Gorbunov
2018-05-20 19:09:36 +03:00
parent ad8c64e127
commit d9656a939b
9 changed files with 2 additions and 20 deletions
@@ -10,9 +10,6 @@
</option> </option>
<option name="taskNames"> <option name="taskNames">
<list> <list>
<option value=":kotlin-runtime:clean" />
<option value=":kotlin-stdlib:clean" />
<option value=":kotlin-reflect:clean" />
<option value=":tools:binary-compatibility-validator:cleanTest" /> <option value=":tools:binary-compatibility-validator:cleanTest" />
<option value=":tools:binary-compatibility-validator:test" /> <option value=":tools:binary-compatibility-validator:test" />
</list> </list>
+1 -2
View File
@@ -29,8 +29,7 @@ compileKotlin {
freeCompilerArgs = ["-version", freeCompilerArgs = ["-version",
"-Xallow-kotlin-package", "-Xallow-kotlin-package",
"-Xnormalize-constructor-calls=enable", "-Xnormalize-constructor-calls=enable",
"-module-name", "kotlin-reflection", "-module-name", "kotlin-reflection"]
"-Xdump-declarations-to=${buildDir}/reflect-declarations.json"]
} }
} }
-1
View File
@@ -60,7 +60,6 @@ compileKotlin {
"-Xallow-kotlin-package", "-Xallow-kotlin-package",
"-Xmultifile-parts-inherit", "-Xmultifile-parts-inherit",
"-Xnormalize-constructor-calls=enable", "-Xnormalize-constructor-calls=enable",
"-Xdump-declarations-to=${buildDir}/stdlib-jdk7-declarations.json",
"-module-name", project.name "-module-name", project.name
] ]
} }
-1
View File
@@ -63,7 +63,6 @@ compileKotlin {
"-Xallow-kotlin-package", "-Xallow-kotlin-package",
"-Xmultifile-parts-inherit", "-Xmultifile-parts-inherit",
"-Xnormalize-constructor-calls=enable", "-Xnormalize-constructor-calls=enable",
"-Xdump-declarations-to=${buildDir}/stdlib-jdk8-declarations.json",
"-module-name", project.name "-module-name", project.name
] ]
} }
-1
View File
@@ -53,7 +53,6 @@ compileKotlin {
"-Xallow-kotlin-package", "-Xallow-kotlin-package",
"-Xmultifile-parts-inherit", "-Xmultifile-parts-inherit",
"-Xnormalize-constructor-calls=enable", "-Xnormalize-constructor-calls=enable",
"-Xdump-declarations-to=${buildDir}/stdlib-jre7-declarations.json",
"-module-name", project.name "-module-name", project.name
] ]
} }
-1
View File
@@ -56,7 +56,6 @@ compileKotlin {
"-Xallow-kotlin-package", "-Xallow-kotlin-package",
"-Xmultifile-parts-inherit", "-Xmultifile-parts-inherit",
"-Xnormalize-constructor-calls=enable", "-Xnormalize-constructor-calls=enable",
"-Xdump-declarations-to=${buildDir}/stdlib-jre8-declarations.json",
"-module-name", project.name "-module-name", project.name
] ]
} }
-3
View File
@@ -174,7 +174,6 @@ compileKotlin {
"-Xallow-kotlin-package", "-Xallow-kotlin-package",
"-Xmultifile-parts-inherit", "-Xmultifile-parts-inherit",
"-Xnormalize-constructor-calls=enable", "-Xnormalize-constructor-calls=enable",
"-Xdump-declarations-to=${buildDir}/stdlib-declarations.json",
"-module-name", "kotlin-stdlib" "-module-name", "kotlin-stdlib"
] ]
} }
@@ -189,7 +188,6 @@ compileExperimentalKotlin {
"-version", "-version",
"-Xallow-kotlin-package", "-Xallow-kotlin-package",
"-Xmultifile-parts-inherit", "-Xmultifile-parts-inherit",
"-Xdump-declarations-to=${buildDir}/stdlib-experimental-declarations.json",
"-module-name", "kotlin-stdlib-experimental" "-module-name", "kotlin-stdlib-experimental"
] ]
} }
@@ -205,7 +203,6 @@ compileCoroutinesKotlin {
"-version", "-version",
"-Xallow-kotlin-package", "-Xallow-kotlin-package",
"-Xmultifile-parts-inherit", "-Xmultifile-parts-inherit",
"-Xdump-declarations-to=${buildDir}/stdlib-coroutines-declarations.json",
"-module-name", "kotlin-stdlib-coroutines" "-module-name", "kotlin-stdlib-coroutines"
] ]
} }
-1
View File
@@ -43,7 +43,6 @@ compileKotlin {
freeCompilerArgs = [ freeCompilerArgs = [
"-Xallow-kotlin-package", "-Xallow-kotlin-package",
"-Xnormalize-constructor-calls=enable", "-Xnormalize-constructor-calls=enable",
"-Xdump-declarations-to=${buildDir}/runtime-declarations.json",
"-Xmulti-platform", "-Xmulti-platform",
"-cp", "${rootDir}/dist/builtins", "-cp", "${rootDir}/dist/builtins",
"-module-name", project.name "-module-name", project.name
@@ -30,23 +30,17 @@ sourceSets {
} }
} }
def testCasesDeclarationsDump = "${buildDir}/cases-declarations.json".toString()
compileTestKotlin { compileTestKotlin {
kotlinOptions { kotlinOptions {
freeCompilerArgs = ["-Xdump-declarations-to=$testCasesDeclarationsDump", "-Xnormalize-constructor-calls=enable"] freeCompilerArgs = ["-Xnormalize-constructor-calls=enable"]
} }
} }
test { test {
dependsOn cleanCompileTestKotlin
dependsOn configurations.testArtifacts dependsOn configurations.testArtifacts
systemProperty 'overwrite.output', System.getProperty("overwrite.output", "false") systemProperty 'overwrite.output', System.getProperty("overwrite.output", "false")
systemProperty 'kotlinVersion', project.version systemProperty 'kotlinVersion', project.version
systemProperty 'testCasesClassesDirs', sourceSets.test.output.classesDirs.asPath systemProperty 'testCasesClassesDirs', sourceSets.test.output.classesDirs.asPath
systemProperty 'testCasesDeclarations', testCasesDeclarationsDump
jvmArgs '-ea' jvmArgs '-ea'
ignoreFailures = System.getenv("kotlin_build_ignore_test_failures") == 'yes'
} }