@@ -23,32 +23,32 @@ jmh {
2323 // Could not expand ZIP 'byte-buddy-agent-1.9.7.jar'.
2424 includeTests.set(false )
2525 profilers.add(" gc" )
26- val jmhIncludeSingleClass: String? by project
26+ val jmhIncludeSingleClass = project.findProperty( " jmhIncludeSingleClass " ) as String?
2727 if (jmhIncludeSingleClass != null ) {
28- includes.add(jmhIncludeSingleClass as String )
28+ includes.add(jmhIncludeSingleClass)
2929 }
3030
31- val jmhFork: String? by project
31+ val jmhFork = project.findProperty( " jmhFork " ) as String?
3232 if (jmhFork != null ) {
33- fork.set(jmhFork!! .toInt())
33+ fork.set(jmhFork.toInt())
3434 }
3535
36- val jmhIterations: String? by project
36+ val jmhIterations = project.findProperty( " jmhIterations " ) as String?
3737 if (jmhIterations != null ) {
38- iterations.set(jmhIterations!! .toInt())
38+ iterations.set(jmhIterations.toInt())
3939 }
4040
41- val jmhTime: String? by project
41+ val jmhTime = project.findProperty( " jmhTime " ) as String?
4242 if (jmhTime != null ) {
4343 timeOnIteration.set(jmhTime)
4444 }
4545
46- val jmhWarmupIterations: String? by project
46+ val jmhWarmupIterations = project.findProperty( " jmhWarmupIterations " ) as String?
4747 if (jmhWarmupIterations != null ) {
48- warmupIterations.set(jmhWarmupIterations!! .toInt())
48+ warmupIterations.set(jmhWarmupIterations.toInt())
4949 }
5050
51- val jmhWarmup: String? by project
51+ val jmhWarmup = project.findProperty( " jmhWarmup " ) as String?
5252 if (jmhWarmup != null ) {
5353 warmup.set(jmhWarmup)
5454 }
0 commit comments