From 0da15fb0effac0566d080d7b85e9fbe46c3dd34d Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Tue, 14 Jun 2022 01:31:37 +0200 Subject: [PATCH] fix: environment variable not found in gradle build script --- build.gradle.kts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 93363e089..78dbb2c88 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -4,22 +4,19 @@ plugins { group = "app.revanced" -val githubUsername: String = project.findProperty("gpr.user") as? String ?: System.getenv("GITHUB_ACTOR") -val githubPassword: String = project.findProperty("gpr.key") as? String ?: System.getenv("GITHUB_TOKEN") - repositories { mavenCentral() maven { url = uri("https://maven.pkg.github.com/revanced/revanced-patcher") credentials { - username = githubUsername - password = githubPassword + username = project.findProperty("gpr.user") as? String ?: System.getenv("GITHUB_ACTOR") + password = project.findProperty("gpr.key") as? String ?: System.getenv("GITHUB_TOKEN") } } } dependencies { - implementation("org.jetbrains.kotlin:kotlin-stdlib:1.7.0") + implementation(kotlin("stdlib")) implementation("app.revanced:revanced-patcher:1.1.0") } \ No newline at end of file