Skip to content

Commit f2e1d63

Browse files
committed
update release logic
1 parent ae538da commit f2e1d63

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

build.gradle.kts

-18
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import groovy.lang.Closure
21
import org.apache.tools.ant.filters.ReplaceTokens
32
import pl.allegro.tech.build.axion.release.domain.hooks.HookContext
43

@@ -10,24 +9,7 @@ plugins {
109

1110
scmVersion {
1211
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-
}
2912
pre { c: HookContext -> c.addCommitPattern("README.md") }
30-
// pre("commit", KotlinClosure1(cl))
3113
pre("commit")
3214
}
3315
}

0 commit comments

Comments
 (0)