mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Added push parameter to autoGitTag.
This commit is contained in:
parent
a38b05fc92
commit
b944039fdc
2 changed files with 11 additions and 5 deletions
|
@ -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, enabled, annotated, tag, message)
|
||||
return git.maybeTagRelease(project, uploadResult, enabled, annotated, push, tag, message)
|
||||
}
|
||||
} else {
|
||||
return TaskResult()
|
||||
|
@ -222,6 +222,9 @@ data class AutoGitTagConfig(val project: Project) {
|
|||
@Directive
|
||||
var annotated: Boolean = false
|
||||
|
||||
@Directive
|
||||
var push: Boolean = true
|
||||
|
||||
@Directive
|
||||
var tag : String = project.version!!
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue