Skip to content

Commit

Permalink
build: enable the git hooks generation
Browse files Browse the repository at this point in the history
  • Loading branch information
DanySK committed Jun 2, 2022
1 parent 69a0001 commit ef52639
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id("com.gradle.enterprise") version "3.10.1"
id("org.danilopianini.gradle-pre-commit-git-hooks") version "1.0.11"
}

gradleEnterprise {
Expand All @@ -10,5 +11,13 @@ gradleEnterprise {
}
}

gitHooks {
commitMsg { conventionalCommits() }
preCommit {
tasks("ktlintCheck", "detekt")
}
createHooks(overwriteExisting = true)
}

rootProject.name = "publish-on-central"
enableFeaturePreview("VERSION_CATALOGS")

0 comments on commit ef52639

Please sign in to comment.