lakedaemon
Joined 11 years ago
Joined 11 years ago
Just put something like this in your gradle.build file :
apply plugin: "info.solidsoft.pitest"
pitest { targetClasses = ['org.lakedaemon.suggest.', 'org.lakedaemon.compress.'] //by default "${project.group}." excludedClasses = ['org.lakedaemon.compress.decoders.DecodersPackage', 'org.lakedaemon.compress.decoders.EncodersPackage'] avoidCallsTo = ['org.apache.log4j.', 'org.lakedaemon.L.', 'org.slf4j.', 'java.util.logging.'] pitestVersion = "1.1.4" //not needed when a default PIT version should be used threads = 4 outputFormats = ['XML', 'HTML'] enableDefaultIncrementalAnalysis = true testSourceSets = [sourceSets.test/, sourceSets.integrationTest/] mainSourceSets = [sourceSets.main/, sourceSets.additionalMain*/] }
The only issue I had was to ignore Package class to make pit work
For DI, Dagger2 works fine with kotlin
For multithreading : Quasar supports Kotlin (I'm waiting for quasar to support android though)
It made things simpler to write, develop and maintain.
One big downside, as of 0.12.1218, is that builds on Android are quite slow (I got 5min builds). But the Kotlin team is aware of the issue and working on it.
Once the kotlin builds on Android get fast enough, it will blow everything else out of the water.
If Google were to switch from Java to Kotlin for android, I wonder how Oracle would feel...