Skip to content

Commit 93d55b5

Browse files
authored
Merge pull request #304 from kit-data-manager/300-gradle-build-fail-if-code-source-is-not-a-git-repository
Fix: prevent git properties plugin from failing without git repository
2 parents 03b9206 + a712376 commit 93d55b5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,13 @@ springBoot {
204204
buildInfo()
205205
}
206206

207+
// make sure that git properties plugin does not fail
208+
// on build without access to the git repo information
209+
// (zip download etc.)
210+
gitProperties {
211+
failOnNoGitDirectory = false
212+
}
213+
207214
release {
208215
// define tag pattern (tags have to start with 'v')
209216
tagTemplate = 'v${version}'

0 commit comments

Comments
 (0)