Skip to content

Commit

Permalink
Add axion-release plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
platan committed Mar 28, 2023
1 parent 56fcd4f commit 1da0212
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 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,29 @@ 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" }),
),
)
// pre("commit")
}
}

project.version = scmVersion.version

repositories {
mavenCentral()
Expand Down

0 comments on commit 1da0212

Please sign in to comment.