/
Changelog.groovy
133 lines (87 loc) · 3.23 KB
/
Changelog.groovy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright 2020-2021 The JReleaser authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jreleaser.gradle.plugin.dsl
import groovy.transform.CompileStatic
import org.gradle.api.Action
import org.gradle.api.file.RegularFileProperty
import org.gradle.api.provider.Property
import org.gradle.api.provider.SetProperty
import org.jreleaser.model.Active
/**
*
* @author Andres Almiray
* @since 0.1.0
*/
@CompileStatic
interface Changelog {
Property<org.jreleaser.model.Changelog.Sort> getSort()
Property<Boolean> getEnabled()
Property<Boolean> getLinks()
RegularFileProperty getExternal()
void setSort(String sort)
Property<Active> getFormatted()
void setFormatted(String str)
Property<String> getChange()
Property<String> getFormat()
Property<String> getContent()
Property<String> getPreset()
RegularFileProperty getContentTemplate()
SetProperty<String> getIncludeLabels()
SetProperty<String> getExcludeLabels()
void includeLabel(String label)
void excludeLabel(String label)
void category(Action<? super Category> action)
void labeler(Action<? super Labeler> action)
void replacer(Action<? super Replacer> action)
void category(@DelegatesTo(strategy = Closure.DELEGATE_FIRST, value = Category) Closure<Void> action)
void labeler(@DelegatesTo(strategy = Closure.DELEGATE_FIRST, value = Labeler) Closure<Void> action)
void replacer(@DelegatesTo(strategy = Closure.DELEGATE_FIRST, value = Replacer) Closure<Void> action)
Hide getHide()
Contributors getContributors()
void hide(Action<? super Hide> action)
void contributors(Action<? super Contributors> action)
void hide(@DelegatesTo(strategy = Closure.DELEGATE_FIRST, value = Hide) Closure<Void> action)
void contributors(@DelegatesTo(strategy = Closure.DELEGATE_FIRST, value = Contributors) Closure<Void> action)
interface Category {
Property<String> getKey()
Property<String> getTitle()
SetProperty<String> getLabels()
Property<String> getFormat()
Property<Integer> getOrder()
}
interface Labeler {
Property<String> getLabel()
Property<String> getTitle()
Property<String> getBody()
Property<Integer> getOrder()
}
interface Replacer {
Property<String> getSearch()
Property<String> getReplace()
}
interface Contributors {
Property<Boolean> getEnabled()
Property<String> getFormat()
}
interface Hide {
Property<Boolean> getUncategorized()
SetProperty<String> getCategories()
SetProperty<String> getContributors()
void hideCategory(String category)
}
}