From 7d0e465209f0a5dd979d5851a3711c6d68ef9498 Mon Sep 17 00:00:00 2001 From: Amit Siddhpura Date: Mon, 13 May 2024 12:32:15 +0530 Subject: [PATCH] Wrapped properties inside publish task to solve the build issue. --- smart-storage/build.gradle.kts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/smart-storage/build.gradle.kts b/smart-storage/build.gradle.kts index 7bead12..6c15146 100644 --- a/smart-storage/build.gradle.kts +++ b/smart-storage/build.gradle.kts @@ -16,10 +16,6 @@ val getArtifactId = { -> "com.ss.smart-storage" // Replace with library name ID } -val githubProperties = Properties() -githubProperties.load(FileInputStream(rootProject.file("github.properties"))) - - android { namespace = "com.ss.smart-storage" compileSdk = 34 @@ -54,6 +50,9 @@ android { } publishing { + val githubProperties = Properties() + githubProperties.load(FileInputStream(rootProject.file("github.properties"))) + repositories { maven { name = "GitHubPackages"