Skip to content

Commit

Permalink
fix standalone examples tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xvik committed Dec 27, 2024
1 parent fd03b7a commit c3cc4f4
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions examples/standalone/android-simple/settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ pluginManagement {
maven {
url = uri("https://maven.pkg.github.com/xvik/gradle-animalsniffer-plugin")
credentials {
username = extra["gpr.user"]?.toString() ?: System.getenv("USERNAME")
password = extra["gpr.key"]?.toString() ?: System.getenv("TOKEN")
username = extra.has("gpr.user").let { if (it) extra["gpr.user"] as String else System.getenv("USERNAME")}
password = extra.has("gpr.key").let { if (it) extra["gpr.key"] as String else System.getenv("TOKEN")}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ pluginManagement {
}
mavenCentral()
gradlePluginPortal()
// for github package (used on CI)
maven {
url = uri("https://maven.pkg.github.com/xvik/gradle-animalsniffer-plugin")
credentials {
username = extra.has("gpr.user").let { if (it) extra["gpr.user"] as String else System.getenv("USERNAME")}
password = extra.has("gpr.key").let { if (it) extra["gpr.key"] as String else System.getenv("TOKEN")}
}
}
}
}

Expand All @@ -27,14 +35,6 @@ dependencyResolutionManagement {
}
}
mavenCentral()
// for github package (used on CI)
maven {
url = uri("https://maven.pkg.github.com/xvik/gradle-animalsniffer-plugin")
credentials {
username = extra["gpr.user"]?.toString() ?: System.getenv("USERNAME")
password = extra["gpr.key"]?.toString() ?: System.getenv("TOKEN")
}
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ pluginManagement {
maven {
url = uri("https://maven.pkg.github.com/xvik/gradle-animalsniffer-plugin")
credentials {
username = extra["gpr.user"]?.toString() ?: System.getenv("USERNAME")
password = extra["gpr.key"]?.toString() ?: System.getenv("TOKEN")
username = extra.has("gpr.user").let { if (it) extra["gpr.user"] as String else System.getenv("USERNAME")}
password = extra.has("gpr.key").let { if (it) extra["gpr.key"] as String else System.getenv("TOKEN")}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ pluginManagement {
maven {
url = uri("https://maven.pkg.github.com/xvik/gradle-animalsniffer-plugin")
credentials {
username = extra["gpr.user"]?.toString() ?: System.getenv("USERNAME")
password = extra["gpr.key"]?.toString() ?: System.getenv("TOKEN")
username = extra.has("gpr.user").let { if (it) extra["gpr.user"] as String else System.getenv("USERNAME")}
password = extra.has("gpr.key").let { if (it) extra["gpr.key"] as String else System.getenv("TOKEN")}
}
}
}
Expand Down

0 comments on commit c3cc4f4

Please sign in to comment.