From 2c87e7c9833807489ec560fb5642c68bfe2037a3 Mon Sep 17 00:00:00 2001 From: Antoine POPINEAU Date: Wed, 6 Nov 2019 09:01:17 +0100 Subject: [PATCH] Moved androidGitVersion to top of the file, else it is not taken into account. [skip ci] --- app/build.gradle.kts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 436f026..a6fa6b8 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -19,6 +19,11 @@ val props = Properties().apply { catch(e: Exception) {} } +androidGitVersion { + codeFormat = "MNNPP" + format = "%tag%%-count%%-commit%%-branch%" +} + android { compileOptions { sourceCompatibility = JavaVersion.VERSION_1_8 @@ -69,11 +74,6 @@ android { } } -androidGitVersion { - codeFormat = "MNNPP" - format = "%tag%%-count%%-commit%%-branch%" -} - ktlint { debug.set(false) verbose.set(false)