-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.gradle.kts
More file actions
31 lines (30 loc) · 1.46 KB
/
Copy pathsettings.gradle.kts
File metadata and controls
31 lines (30 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
pluginManagement {
repositories { google(); mavenCentral(); gradlePluginPortal() }
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
// light-common lives in GitHub Packages, which has no anonymous read even for public
// packages. Locally: gpr.user / gpr.key in local.properties (a PAT with read:packages).
// In CI: GPR_USER / GPR_TOKEN if a dedicated secret is set, otherwise the run's own
// GITHUB_ACTOR / GITHUB_TOKEN.
maven {
url = uri("https://maven.pkg.github.com/gi-os/light-common")
credentials {
// takeUnless(String::isBlank), not `?:` — an unset repository secret arrives
// as an empty string rather than as null, so a plain elvis chain would hand
// Gradle a blank username and never reach the fallback.
username = System.getenv("GPR_USER")?.takeUnless(String::isBlank)
?: System.getenv("GITHUB_ACTOR")?.takeUnless(String::isBlank)
?: providers.gradleProperty("gpr.user").orNull
password = System.getenv("GPR_TOKEN")?.takeUnless(String::isBlank)
?: System.getenv("GITHUB_TOKEN")?.takeUnless(String::isBlank)
?: providers.gradleProperty("gpr.key").orNull
}
}
}
}
rootProject.name = "BrightNotebook"
include(":app")