Skip to content

Commit

Permalink
Merge pull request gradle#20407 Fix build lifecycle documentation sample
Browse files Browse the repository at this point in the history
  • Loading branch information
bot-gradle committed Apr 8, 2022
2 parents e647bbb + 7b39dd8 commit 90a611a
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
// tag::after-evaluate[]
allprojects {
// Set a default value
extra["hasTests"] = false

afterEvaluate {
if (extra["hasTests"] as Boolean) {
println("Adding test task to $project")
Expand All @@ -12,7 +15,3 @@ allprojects {
}
}
// end::after-evaluate[]

allprojects {
extra["hasTests"] = false
}

0 comments on commit 90a611a

Please sign in to comment.