Skip to content

Commit

Permalink
enable custom pitest versions to be used in ScmTask
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Priadka committed Dec 11, 2017
1 parent b5e8592 commit a2dbc98
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ class PitestPlugin implements Plugin<Project> {
project.afterEvaluate {
pitestTask.dependsOn(calculateTasksToDependOn())
scmPitestTask.dependsOn(calculateTasksToDependOn())
addPitestCommandLineToConfiguration()
addPitestCommandLineToConfiguration(pitestExtension)
addPitestCommandLineToConfiguration(scmPitestExtension)
}
}

Expand Down Expand Up @@ -198,8 +199,8 @@ class PitestPlugin implements Plugin<Project> {
}

@CompileStatic
private void addPitestCommandLineToConfiguration() {
log.info("Using PIT: $pitestExtension.pitestVersion")
project.rootProject.buildscript.dependencies.add(PluginConstants.PITEST_CONFIGURATION_NAME, "org.pitest:pitest-command-line:$pitestExtension.pitestVersion")
private void addPitestCommandLineToConfiguration(PitestPluginExtension extension) {
log.info("Using PIT: $extension.pitestVersion")
project.rootProject.buildscript.dependencies.add(PluginConstants.PITEST_CONFIGURATION_NAME, "org.pitest:pitest-command-line:$extension.pitestVersion")
}
}

0 comments on commit a2dbc98

Please sign in to comment.