File tree Expand file tree Collapse file tree 1 file changed +12
-16
lines changed Expand file tree Collapse file tree 1 file changed +12
-16
lines changed Original file line number Diff line number Diff line change @@ -138,24 +138,20 @@ subprojects {
138
138
139
139
String versionChangelog () {
140
140
List<String > lines = rootProject. file(" CHANGELOG.md" ). readLines()
141
- if (" ${ mod_version} " . startsWith(lines. get(2 ). substring(3 ))) {
142
- StringBuilder builder = new StringBuilder ()
143
- for (int i = 4 ; i < lines. size(); i++ ) {
144
- String line = lines. get(i)
145
- if (line. isBlank()) {
146
- // pass
147
- } else if (line. startsWith(" ## " )) {
148
- break
149
- }
150
- else {
151
- if (! builder. isEmpty()) builder. append(" \n " )
152
- builder. append(line)
153
- }
141
+ StringBuilder builder = new StringBuilder ()
142
+ for (int i = 4 ; i < lines. size(); i++ ) {
143
+ String line = lines. get(i)
144
+ if (line. isBlank()) {
145
+ // pass
146
+ } else if (line. startsWith(" ## " )) {
147
+ break
148
+ }
149
+ else {
150
+ if (! builder. isEmpty()) builder. append(" \n " )
151
+ builder. append(line)
154
152
}
155
- return builder. toString()
156
- } else {
157
- return " Error creating changelog"
158
153
}
154
+ return builder. toString()
159
155
}
160
156
161
157
static String capsLoader (String loader ) {
You can’t perform that action at this time.
0 commit comments