Skip to content

Commit 599cc79

Browse files
committed
updated config
1 parent 59d339a commit 599cc79

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed
0 Bytes
Binary file not shown.
2.16 KB
Binary file not shown.

codeeditor/build.gradle.kts

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,25 +66,26 @@ android {
6666
}
6767

6868
val githubProperties = Properties()
69-
runCatching { githubProperties.load(FileInputStream(rootProject.file("github.properties"))) }
69+
try {
70+
githubProperties.load(FileInputStream(rootProject.file("github.properties")))
71+
}catch(ex : Exception){
72+
ex.printStackTrace()
73+
}
7074

7175
afterEvaluate {
7276
publishing {
7377
repositories {
7478
maven {
7579
name = "GithubPackages"
76-
/** Configure path of your package repository on Github
77-
* Replace GITHUB_USERID with your/organisation Github userID and REPOSITORY with the repository name on GitHub
78-
*/
7980
url = uri("https://maven.pkg.github.com/codeckle/compose-code-editor")
80-
81-
kotlin.runCatching {
81+
try {
8282
credentials {
83-
/**Create github.properties in root project folder file with gpr.usr=GITHUB_USER_ID & gpr.key=PERSONAL_ACCESS_TOKEN**/
8483
username = (githubProperties["gpr.usr"] ?: System.getenv("GPR_USER")).toString()
8584
password = (githubProperties["gpr.key"] ?: System.getenv("GPR_API_KEY")).toString()
8685
}
87-
}.onFailure { it.printStackTrace() }
86+
}catch(ex : Exception){
87+
ex.printStackTrace()
88+
}
8889
}
8990
}
9091
}

0 commit comments

Comments
 (0)