Skip to content

Commit

Permalink
Merge pull request #79 from NielsDoucet/register-tasks-lazily
Browse files Browse the repository at this point in the history
Register tasks instead of creating them.
  • Loading branch information
dcoraboeuf authored Jun 20, 2020
2 parents bb9fc86 + 0513b16 commit 4796b7d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ class VersioningPlugin implements Plugin<Project> {
// Creates a new `versionInfo` extension
project.extensions.create('versioning', VersioningExtension, project)
// `versionDisplay` task
project.tasks.create('versionDisplay', VersionDisplayTask)
project.tasks.register('versionDisplay', VersionDisplayTask)
// `versionFile` task
project.tasks.create('versionFile', VersionFileTask)
project.tasks.register('versionFile', VersionFileTask)
}

}

0 comments on commit 4796b7d

Please sign in to comment.