This repository has been archived by the owner on Nov 3, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle.kts
49 lines (43 loc) · 1.59 KB
/
build.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// Top-level build file where you can add configuration options common to all sub-projects/modules.
import org.jetbrains.kotlin.konan.properties.Properties
import java.io.FileInputStream
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath(Dependencies.BuildPlugins.androidGradle)
classpath(Dependencies.BuildPlugins.kotlinGradle)
classpath(Dependencies.BuildPlugins.hiltGradle)
classpath(Dependencies.BuildPlugins.kotlinxSerialization)
classpath(Dependencies.BuildPlugins.crashlyticsGradle)
classpath(Dependencies.BuildPlugins.googleServicesGradle)
classpath(Dependencies.BuildPlugins.navigationSafeArgsGradle)
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
val props = Properties().apply {
load(FileInputStream(File(rootProject.rootDir, "github.properties")))
}
val githubUserId: String? = props.getProperty("gpr.user")
val githubApiKey: String? = props.getProperty("gpr.key")
allprojects {
repositories {
google()
jcenter()
mavenCentral()
maven { setUrl("https://jitpack.io") }
maven(url = uri("https://maven.pkg.github.com/Cuberto/liquid-swipe-android")) {
name = "GitHubPackages"
credentials {
username = githubUserId ?: System.getenv("GPR_USER")
password = githubApiKey ?: System.getenv("GPR_API_KEY")
}
}
}
}
tasks.register("clean", Delete::class){
delete(rootProject.buildDir)
}