@@ -7,7 +7,7 @@ plugins {
77 id ' checkstyle'
88 id ' pmd'
99 id " io.freefair.lombok" version " 4.1.6"
10- id ' team.yi.semantic-gitlog' version ' 0.4.1.1 '
10+ id ' team.yi.semantic-gitlog' version ' 0.5.0 '
1111}
1212
1313group = ' team.yi.gradle.plugin'
@@ -200,48 +200,46 @@ task setVersion {
200200}
201201
202202changelog {
203- toRef = " master "
203+ toRef = " dev "
204204 isUnstable = true
205205 preRelease = ' SNAPSHOT'
206- lastVersion = ' 0.4.0'
207206
208- jsonFile = file(" ${ project. rootDir} /CHANGELOG.json" )
207+ jsonFile = file(" ${ rootDir} /CHANGELOG.json" )
209208 fileSets = [
210209 {
211- template = file(" ${ project. rootDir} /config/gitlog/CHANGELOG.md.mustache" )
212- target = file(" ${ project. rootDir} /CHANGELOG.md" )
210+ template = file(" ${ rootDir} /config/gitlog/CHANGELOG.md.mustache" )
211+ target = file(" ${ rootDir} /CHANGELOG.md" )
213212 },
214213 {
215- template = file(" ${ project. rootDir} /config/gitlog/CHANGELOG.zh-cn.md.mustache" )
216- target = file(" ${ project. rootDir} /CHANGELOG.zh-cn.md" )
214+ template = file(" ${ rootDir} /config/gitlog/CHANGELOG.zh-cn.md.mustache" )
215+ target = file(" ${ rootDir} /CHANGELOG.zh-cn.md" )
217216 }
218217 ]
219218 commitLocales = [
220- " en" : file(" ${ project. rootDir} /config/gitlog/commit-locales.md" ),
221- " zh-cn" : file(" ${ project. rootDir} /config/gitlog/commit-locales.zh-cn.md" )
219+ " en" : file(" ${ rootDir} /config/gitlog/commit-locales.md" ),
220+ " zh-cn" : file(" ${ rootDir} /config/gitlog/commit-locales.zh-cn.md" )
222221 ]
223222 scopeProfiles = [
224- " en" : file(" ${ project. rootDir} /config/gitlog/commit-scopes.md" ),
225- " zh-cn" : file(" ${ project. rootDir} /config/gitlog/commit-scopes.zh-cn.md" )
223+ " en" : file(" ${ rootDir} /config/gitlog/commit-scopes.md" ),
224+ " zh-cn" : file(" ${ rootDir} /config/gitlog/commit-scopes.zh-cn.md" )
226225 ]
227226 issueUrlTemplate = " https://github.com/ymind/gradle-semantic-gitlog/issues/:issueId"
228227 commitUrlTemplate = " https://github.com/ymind/gradle-semantic-gitlog/commit/:commitId"
229228 mentionUrlTemplate = " https://github.com/:username"
230229}
231230
232231derive {
233- toRef = " master "
232+ toRef = " dev "
234233 isUnstable = true
235234 preRelease = ' SNAPSHOT'
236- lastVersion = ' 0.4.0'
237235 derivedVersionMark = " NEXT_VERSION:=="
238236
239237 commitLocales = [
240- " en" : file(" ${ project. rootDir} /config/gitlog/commit-locales.md" ),
241- " zh-cn" : file(" ${ project. rootDir} /config/gitlog/commit-locales.zh-cn.md" )
238+ " en" : file(" ${ rootDir} /config/gitlog/commit-locales.md" ),
239+ " zh-cn" : file(" ${ rootDir} /config/gitlog/commit-locales.zh-cn.md" )
242240 ]
243241 scopeProfiles = [
244- " en" : file(" ${ project. rootDir} /config/gitlog/commit-scopes.md" ),
245- " zh-cn" : file(" ${ project. rootDir} /config/gitlog/commit-scopes.zh-cn.md" )
242+ " en" : file(" ${ rootDir} /config/gitlog/commit-scopes.md" ),
243+ " zh-cn" : file(" ${ rootDir} /config/gitlog/commit-scopes.zh-cn.md" )
246244 ]
247245}
0 commit comments