From b5f784571c4010d11e3bad08a0e156819d10f8f4 Mon Sep 17 00:00:00 2001 From: conanoc Date: Fri, 23 Feb 2024 20:44:07 +0900 Subject: [PATCH] fix null check again Signed-off-by: conanoc --- ariesframework/build.gradle | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ariesframework/build.gradle b/ariesframework/build.gradle index 7c1b459..e6822b2 100644 --- a/ariesframework/build.gradle +++ b/ariesframework/build.gradle @@ -70,7 +70,7 @@ dependencies { ext["githubUsername"] = null ext["githubToken"] = null -ext["version"] = "2.0.0" +ext["version"] = null def secretPropsFile = project.rootProject.file("local.properties") if (secretPropsFile.exists()) { @@ -83,7 +83,11 @@ if (secretPropsFile.exists()) { ext["version"] = System.getenv("VERSION") } -ext["version"] = ext["version"]?.replaceFirst("v", "") +if (ext["version"] != null) { + ext["version"] = ext["version"].replaceFirst("v", "") +} else { + ext["version"] = "2.0.0" +} def getExtraString(name) { try {