-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsettings.gradle.kts
More file actions
66 lines (58 loc) · 1.91 KB
/
settings.gradle.kts
File metadata and controls
66 lines (58 loc) · 1.91 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import java.net.URI
import java.util.Properties
pluginManagement {
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven {
url = URI("https://jitpack.io")
}
maven {
// Important note:
// To authenticate with GitHub Packages, you need to generate a fine-grained personal access token
// The token needs access only to [Public repositories]
// Add it as gpr.token=$token in local.properties file in the root of the project
// For more details, refer to the documentation:
// https://github.com/settings/personal-access-tokens/new
// https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-gradle-registry#authenticating-with-a-personal-access-token
val localProps = getLocalProps()
name = "GitHubPackages"
url = URI("https://maven.pkg.github.com/ARK-Builders/arklib-android")
credentials {
username = "token"
password = localProps.getProperty("gpr.token") ?: System.getenv("GITHUB_TOKEN")
}
}
}
versionCatalogs {
create("libraries") {
from(files("./gradle/libs.versions.toml"))
}
}
}
fun getLocalProps(): Properties {
val props = Properties()
val localPropsFile = File(rootDir, "local.properties")
if (localPropsFile.exists()) {
localPropsFile.inputStream().use { stream ->
props.load(stream)
}
}
return props
}
rootProject.name = "Ark Components"
include(":scorewidget")
include(":tagselector")
include(":folderstree")
include(":utils")
include(":filepicker")
include(":sample")
include(":about")