|
1 | 1 | plugins { |
2 | 2 | id 'java' |
3 | | - id 'team.yi.semantic-gitlog' version '0.4.1.2-SNAPSHOT' |
| 3 | + id 'team.yi.semantic-gitlog' version '0.5.0' |
4 | 4 | } |
5 | 5 |
|
6 | 6 | group = 'team.yi.gradle.plugin.example' |
@@ -40,37 +40,44 @@ task setVersion { |
40 | 40 | } |
41 | 41 |
|
42 | 42 | changelog { |
43 | | - toRef = "master" |
| 43 | + toRef = "dev" |
44 | 44 | isUnstable = true |
45 | 45 |
|
46 | | - jsonFile = file("${project.rootDir}/CHANGELOG.json") |
| 46 | + jsonFile = file("${rootDir}/CHANGELOG.json") |
47 | 47 | fileSets = [ |
48 | 48 | { |
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") |
51 | 51 | }, |
52 | 52 | { |
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") |
55 | 55 | } |
56 | 56 | ] |
57 | 57 | 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") |
59 | 60 | ] |
60 | 61 | 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") |
62 | 64 | ] |
| 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" |
63 | 68 | } |
64 | 69 |
|
65 | 70 | derive { |
66 | | - toRef = "master" |
| 71 | + toRef = "dev" |
67 | 72 | isUnstable = true |
68 | 73 | derivedVersionMark = "NEXT_VERSION:==" |
69 | 74 |
|
70 | 75 | 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") |
72 | 78 | ] |
73 | 79 | 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") |
75 | 82 | ] |
76 | 83 | } |
0 commit comments