Fix gradle import error after introducing new gradle task in benchmarks

This commit is contained in:
Ivan Kylchik
2020-07-23 14:17:21 +03:00
parent 96ac6e612d
commit bc41681a2e
+4 -4
View File
@@ -111,8 +111,9 @@ tasks.named("classes") {
}
}
/*tasks.register<JavaExec>("runBenchmark") {
val jmhArgs: String by project // example: -PjmhArgs='CommonCalls -p size=500 -p isIR=true -p useNI=true -f 1'
tasks.register<JavaExec>("runBenchmark") {
// jmhArgs example: -PjmhArgs='CommonCalls -p size=500 -p isIR=true -p useNI=true -f 1'
val jmhArgs = if (project.hasProperty("jmhArgs")) project.property("jmhArgs").toString() else ""
val resultFilePath = "$buildDir/benchmarks/jmh-result.json"
val ideaHome = intellijRootDir().canonicalPath
@@ -120,7 +121,6 @@ tasks.named("classes") {
args = mutableListOf("-Didea.home.path=$ideaHome", benchmarkJarPath, "-rf", "json", "-rff", resultFilePath) + jmhArgs.split("\\s".toRegex())
main = "-jar"
doLast {
if (project.kotlinBuildProperties.isTeamcityBuild) {
val jsonArray = com.google.gson.JsonParser.parseString(File(resultFilePath).readText()).asJsonArray
@@ -144,4 +144,4 @@ tasks.named("classes") {
}
}
}
}*/
}