Skip to content

Commit

Permalink
Merge branch 'axion-release-plugin'
Browse files Browse the repository at this point in the history
  • Loading branch information
platan committed Mar 29, 2023
2 parents 946a7bc + 3fbbafb commit 7318a4f
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import pl.allegro.tech.build.axion.release.domain.hooks.HookContext

plugins {
id("org.jetbrains.kotlin.jvm") version "1.8.10"
`java-gradle-plugin`
Expand All @@ -8,10 +10,28 @@ plugins {
id("com.github.jakemarsden.git-hooks") version "0.0.2"
id("io.github.platan.tests-execution-chart") version "0.3.0"
kotlin("plugin.serialization") version "1.8.10"
id("pl.allegro.tech.build.axion-release") version "1.15.0"
}

group = "io.github.platan"
version = "0.3.1-SNAPSHOT"

scmVersion {
tag {
prefix.set("release-")
}
hooks {
pre(
"fileUpdate",
mapOf(
"file" to "README.md",
"pattern" to KotlinClosure2<String, HookContext, String>({ previousVersion, _ -> "version \"$previousVersion\"" }),
"replacement" to KotlinClosure2<String, HookContext, String>({ releaseVersion, _ -> "version \"$releaseVersion\"" }),
),
)
}
}

project.version = scmVersion.version

repositories {
mavenCentral()
Expand Down

0 comments on commit 7318a4f

Please sign in to comment.