File tree 1 file changed +0
-18
lines changed
1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change 1
- import groovy.lang.Closure
2
1
import org.apache.tools.ant.filters.ReplaceTokens
3
2
import pl.allegro.tech.build.axion.release.domain.hooks.HookContext
4
3
@@ -10,24 +9,7 @@ plugins {
10
9
11
10
scmVersion {
12
11
hooks {
13
- // pre(
14
- // "fileUpdate",
15
- // mapOf(
16
- // "file" to "README.md",
17
- // "pattern" to { v: String, _: HookContext -> v },
18
- // "replacement" to { v: String, _: HookContext -> v + "qw" }
19
- // )
20
- // )
21
- // pre("commit") { c: HookContext ->
22
- // c.addCommitPattern("README.md")
23
- // return@pre "Release version: ${c.releaseVersion}"
24
- // }
25
- val cl = { c: HookContext ->
26
- c.addCommitPattern(" README.md" )
27
- " Release version: ${c.releaseVersion} "
28
- }
29
12
pre { c: HookContext -> c.addCommitPattern(" README.md" ) }
30
- // pre("commit", KotlinClosure1(cl))
31
13
pre(" commit" )
32
14
}
33
15
}
You can’t perform that action at this time.
0 commit comments