From be24b2345ddadaa19f731b9aa2e6e10ca957edc6 Mon Sep 17 00:00:00 2001 From: Damien Coraboeuf Date: Sun, 30 May 2021 15:06:40 +0200 Subject: [PATCH] #85 Missing annotations --- .../net/nemerosa/versioning/tasks/VersionFileTask.groovy | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/groovy/net/nemerosa/versioning/tasks/VersionFileTask.groovy b/src/main/groovy/net/nemerosa/versioning/tasks/VersionFileTask.groovy index 08ffff7..b50587e 100644 --- a/src/main/groovy/net/nemerosa/versioning/tasks/VersionFileTask.groovy +++ b/src/main/groovy/net/nemerosa/versioning/tasks/VersionFileTask.groovy @@ -2,6 +2,8 @@ package net.nemerosa.versioning.tasks import net.nemerosa.versioning.VersionInfo import org.gradle.api.DefaultTask +import org.gradle.api.tasks.Input +import org.gradle.api.tasks.OutputFile import org.gradle.api.tasks.TaskAction class VersionFileTask extends DefaultTask { @@ -9,11 +11,13 @@ class VersionFileTask extends DefaultTask { /** * File to write the information info. Defaults to new File(project.buildDir, 'version.properties'). */ + @OutputFile File file = new File(project.buildDir, 'version.properties') /** * Prefix to apply. Defauts to VERSION_ */ + @Input String prefix = 'VERSION_' /**