-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsettings.gradle
More file actions
63 lines (54 loc) · 1.94 KB
/
settings.gradle
File metadata and controls
63 lines (54 loc) · 1.94 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
import org.gradle.api.initialization.resolve.RepositoriesMode
pluginManagement {
repositories {
google()
mavenCentral()
maven{url 'https://jitpack.io'}
maven { url "https://plugins.gradle.org/m2/" }
gradlePluginPortal()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven{url 'https://jitpack.io'}
maven { url "https://plugins.gradle.org/m2/" }
gradlePluginPortal()
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
def localProps = getLocalProps()
name = "GitHubPackages"
url = "https://maven.pkg.github.com/ARK-Builders/ark-android"
credentials {
username = "token"
password = localProps.getProperty("gpr.token") ?: System.getenv("GITHUB_TOKEN")
}
}
}
versionCatalogs {
create("libraries") {
from(files("./gradle/libs.versions.toml"))
}
}
}
rootProject.name = "ARK Memo"
include ':app'
def getLocalProps() {
def props = new Properties()
def localPropsFile = new File(rootDir, "local.properties")
if (localPropsFile.exists()) {
localPropsFile.withInputStream { stream ->
props.load(stream)
}
}
return props
}
include ':logging'