Skip to content

Commit

Permalink
Move default assignment in sample
Browse files Browse the repository at this point in the history
  • Loading branch information
hegyibalint committed Apr 7, 2022
1 parent 8b44028 commit 7b39dd8
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 7b39dd8

Please sign in to comment.