Skip to content

Commit

Permalink
set buildName on dynamic GradleBuild recursion tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
tomas.mccandless committed Aug 26, 2020
1 parent 0c06be6 commit a21ba5a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/groovy/com/adtran/ScalaMultiVersionPlugin.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ class ScalaMultiVersionPlugin implements Plugin<Project> {
startParameter.projectProperties["recursed"] = true
startParameter.excludedTaskNames += getRunOnceTasks()
tasks = project.gradle.startParameter.taskNames
if(6 <= project.gradle.gradleVersion.split(java.util.regex.Pattern.quote('.'))[0].toInteger() ){
buildName = project.name
}
}
}
def tasksToAdd = buildVersionTasks.collect { it.path }
Expand Down

0 comments on commit a21ba5a

Please sign in to comment.