diff --git a/ShimmerAndroidInstrumentDriver/build.gradle b/ShimmerAndroidInstrumentDriver/build.gradle index 1a8c50a3..d8e5724c 100644 --- a/ShimmerAndroidInstrumentDriver/build.gradle +++ b/ShimmerAndroidInstrumentDriver/build.gradle @@ -29,18 +29,40 @@ allprojects { name = "GitHubPackages" url = uri("https://maven.pkg.github.com/ShimmerEngineering/Shimmer-Java-Android-API") credentials { - /**Create github.properties in root project folder file with gpr.usr=GITHUB_USER_ID & gpr.key=PERSONAL_ACCESS_TOKEN**/ - username = githubProperties['gpr.usr'] ?: System.getenv("GPR_USER") - password = githubProperties['gpr.key'] ?: System.getenv("GPR_API_KEY") + /* Create gradle.properties file in GRADLE_USER_HOME/.gradle/ + (e.g. C:/Users/YourUsername/.gradle/) with the two lines listed below. Fill in your + Github ID and personal access token - as generated through the Github Developer + Settings page. The token needs to have "read:packages" scope enabled on it: + gpr.usr=GITHUB_USER_ID + gpr.key=PERSONAL_ACCESS_TOKEN + */ + username = project.findProperty("gpr.user") ?: System.getenv("USERNAME") + password = project.findProperty("gpr.key") ?: System.getenv("TOKEN") + /* should the above not work key in your username and password directly e.g. + username = "username" + password = "password" + DO NOT commit your username and password + */ } } maven { name = "GitHubPackages" url = uri("https://maven.pkg.github.com/ShimmerEngineering/ShimmerAndroidAPI") credentials { - /**Create github.properties in root project folder file with gpr.usr=GITHUB_USER_ID & gpr.key=PERSONAL_ACCESS_TOKEN**/ - username = githubProperties['gpr.usr'] ?: System.getenv("GPR_USER") - password = githubProperties['gpr.key'] ?: System.getenv("GPR_API_KEY") + /* Create gradle.properties file in GRADLE_USER_HOME/.gradle/ + (e.g. C:/Users/YourUsername/.gradle/) with the two lines listed below. Fill in your + Github ID and personal access token - as generated through the Github Developer + Settings page. The token needs to have "read:packages" scope enabled on it: + gpr.usr=GITHUB_USER_ID + gpr.key=PERSONAL_ACCESS_TOKEN + */ + username = project.findProperty("gpr.user") ?: System.getenv("USERNAME") + password = project.findProperty("gpr.key") ?: System.getenv("TOKEN") + /* should the above not work key in your username and password directly e.g. + username = "username" + password = "password" + DO NOT commit your username and password + */ } } mavenCentral()