1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-27 00:38:11 -07:00

Added annotated directive to autoGitTag.

This commit is contained in:
Erik C. Thauvin 2017-03-18 00:45:06 -07:00
parent c6e15739e8
commit 792fa88674
2 changed files with 8 additions and 5 deletions

View file

@ -47,7 +47,7 @@ class PublishPlugin @Inject constructor(val files: KFiles, val factory: PomGener
private fun autoGitTag(project: Project, uploadResult: TaskResult, config: AutoGitTagConfig?) : TaskResult {
if (config != null) {
with(config) {
return git.maybeTagRelease(project, uploadResult, auto, tag, message)
return git.maybeTagRelease(project, uploadResult, auto, annotated, tag, message)
}
} else {
return TaskResult()
@ -219,6 +219,9 @@ data class AutoGitTagConfig(val project: Project) {
@Directive
var auto: Boolean = true
@Directive
var annotated: Boolean = false
@Directive
var tag : String = project.version!!