Only dump ASM classes during tests if according property is passed to Gradle

This commit is contained in:
Iaroslav Postovalov 2021-11-17 19:03:20 +07:00
parent a6922ab9d8
commit e38b2e1c53

View File

@ -55,6 +55,7 @@ tasks.dokkaHtml {
dependsOn(tasks.build)
}
if (System.getProperty("space.kscience.kmath.ast.dump.generated.classes") == "1")
tasks.jvmTest {
jvmArgs = (jvmArgs ?: emptyList()) + listOf("-Dspace.kscience.kmath.ast.dump.generated.classes=1")
}