diff --git a/src/main/groovy/net/nemerosa/versioning/VersioningPlugin.groovy b/src/main/groovy/net/nemerosa/versioning/VersioningPlugin.groovy index 98244c0..ac044fd 100644 --- a/src/main/groovy/net/nemerosa/versioning/VersioningPlugin.groovy +++ b/src/main/groovy/net/nemerosa/versioning/VersioningPlugin.groovy @@ -12,9 +12,9 @@ class VersioningPlugin implements Plugin { // 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) } }