-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.gradle.kts
35 lines (32 loc) · 924 Bytes
/
settings.gradle.kts
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
32
33
34
35
pluginManagement {
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/takumi-saito/property-validator")
val props = loadProperties(file("$rootDir/github.properties"))
credentials {
username = props["gpr.user"] as String
password = props["gpr.token"] as String
}
}
}
}
fun loadProperties(propertiesFile: File) = java.util.Properties().apply {
propertiesFile.inputStream().use { fis ->
load(fis)
}
}
rootProject.name = "PropertyValidatorUsageExample"
include(":app")
// module dependency
//include(":property_validator")