Skip to content

Commit da5f72f

Browse files
committed
code cleanup
1 parent 2b381fe commit da5f72f

6 files changed

Lines changed: 23 additions & 469 deletions

File tree

gitlog-example/build.gradle

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
plugins {
22
id 'java'
3-
id 'team.yi.semantic-gitlog' version '0.4.1.2-SNAPSHOT'
3+
id 'team.yi.semantic-gitlog' version '0.5.0'
44
}
55

66
group = 'team.yi.gradle.plugin.example'
@@ -40,37 +40,44 @@ task setVersion {
4040
}
4141

4242
changelog {
43-
toRef = "master"
43+
toRef = "dev"
4444
isUnstable = true
4545

46-
jsonFile = file("${project.rootDir}/CHANGELOG.json")
46+
jsonFile = file("${rootDir}/CHANGELOG.json")
4747
fileSets = [
4848
{
49-
template = file("${project.rootDir}/config/gitlog/CHANGELOG.md.mustache")
50-
target = file("${project.rootDir}/CHANGELOG.md")
49+
template = file("${rootDir}/config/gitlog/CHANGELOG.md.mustache")
50+
target = file("${rootDir}/CHANGELOG.md")
5151
},
5252
{
53-
template = file("${project.rootDir}/config/gitlog/CHANGELOG.zh-cn.md.mustache")
54-
target = file("${project.rootDir}/CHANGELOG.zh-cn.md")
53+
template = file("${rootDir}/config/gitlog/CHANGELOG.zh-cn.md.mustache")
54+
target = file("${rootDir}/CHANGELOG.zh-cn.md")
5555
}
5656
]
5757
commitLocales = [
58-
"zh-cn": file("${project.rootDir}/config/gitlog/commit-locales.zh-cn.md")
58+
"en" : file("${rootDir}/config/gitlog/commit-locales.md"),
59+
"zh-cn": file("${rootDir}/config/gitlog/commit-locales.zh-cn.md")
5960
]
6061
scopeProfiles = [
61-
"zh-cn": file("${project.rootDir}/config/gitlog/commit-scopes.zh-cn.md")
62+
"en" : file("${rootDir}/config/gitlog/commit-scopes.md"),
63+
"zh-cn": file("${rootDir}/config/gitlog/commit-scopes.zh-cn.md")
6264
]
65+
issueUrlTemplate = "https://github.com/ymind/gradle-semantic-gitlog/issues/:issueId"
66+
commitUrlTemplate = "https://github.com/ymind/gradle-semantic-gitlog/commit/:commitId"
67+
mentionUrlTemplate = "https://github.com/:username"
6368
}
6469

6570
derive {
66-
toRef = "master"
71+
toRef = "dev"
6772
isUnstable = true
6873
derivedVersionMark = "NEXT_VERSION:=="
6974

7075
commitLocales = [
71-
"zh-cn": file("${project.rootDir}/config/gitlog/commit-locales.zh-cn.md")
76+
"en" : file("${rootDir}/config/gitlog/commit-locales.md"),
77+
"zh-cn": file("${rootDir}/config/gitlog/commit-locales.zh-cn.md")
7278
]
7379
scopeProfiles = [
74-
"zh-cn": file("${project.rootDir}/config/gitlog/commit-scopes.zh-cn.md")
80+
"en" : file("${rootDir}/config/gitlog/commit-scopes.md"),
81+
"zh-cn": file("${rootDir}/config/gitlog/commit-scopes.zh-cn.md")
7582
]
7683
}

gitlog-example/config/checkstyle/checkstyle.xml

Lines changed: 0 additions & 325 deletions
This file was deleted.

gitlog-example/config/gitlog/commit-scopes.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
- **deps** External dependencies
88
- **docs** Code notes, API documentation, development guidelines, update logs, contribution guides, instructions for use, etc.
99
- **config** Project configuration information
10-
- **service** Gitlog services
1110
- **render** Gitlog renders
1211
- **model** Gitlog models
12+
- **task/changelog** Changelog generate task
13+
- **task/derive** Project semantic version derive task

0 commit comments

Comments
 (0)