diff options
| author | Harsh Shandilya <me@msfjarvis.dev> | 2021-11-14 12:10:53 +0530 |
|---|---|---|
| committer | Harsh Shandilya <me@msfjarvis.dev> | 2021-11-16 00:22:17 +0530 |
| commit | c3279e65b74c0fc7c38cdf13a4b98e69b5241254 (patch) | |
| tree | 60fe198ec4999d0b5b2d5d8e5d1bf1a16eaf3d45 /build-logic/automation-plugins/src/main/kotlin/com.github.android-password-store.git-hooks.gradle.kts | |
| parent | cfeca2d3ee149f72d3af18844a78f76aaa9fa790 (diff) | |
| download | HardenedPass-c3279e65b74c0fc7c38cdf13a4b98e69b5241254.tar.gz HardenedPass-c3279e65b74c0fc7c38cdf13a4b98e69b5241254.zip | |
build-logic: add automation convention plugins
Diffstat (limited to 'build-logic/automation-plugins/src/main/kotlin/com.github.android-password-store.git-hooks.gradle.kts')
| -rw-r--r-- | build-logic/automation-plugins/src/main/kotlin/com.github.android-password-store.git-hooks.gradle.kts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/build-logic/automation-plugins/src/main/kotlin/com.github.android-password-store.git-hooks.gradle.kts b/build-logic/automation-plugins/src/main/kotlin/com.github.android-password-store.git-hooks.gradle.kts new file mode 100644 index 00000000..6f661a6a --- /dev/null +++ b/build-logic/automation-plugins/src/main/kotlin/com.github.android-password-store.git-hooks.gradle.kts @@ -0,0 +1,12 @@ +/* + * Copyright © 2014-2021 The Android Password Store Authors. All Rights Reserved. + * SPDX-License-Identifier: GPL-3.0-only + */ + +import tasks.GitHooks + +tasks.register<GitHooks>("installGitHooks") { + val projectDirectory = layout.projectDirectory + hookScript.set(projectDirectory.file("scripts/pre-push-hook.sh").asFile.readText()) + hookOutput.set(projectDirectory.file(".git/hooks/pre-push").asFile) +} |
