-
Notifications
You must be signed in to change notification settings - Fork 22
/
build.gradle.kts
44 lines (40 loc) · 1.19 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
mavenCentral()
jcenter()
}
dependencies {
classpath("com.android.tools.build:gradle:4.1.3")
classpath(kotlin("gradle-plugin", version = "1.4.0"))
classpath("androidx.navigation:navigation-safe-args-gradle-plugin:2.3.5")
}
// Exclude the lombok version that the android plugin depends on.
configurations.classpath {
exclude(group = "com.android.tools.external.lombok")
}
}
allprojects {
repositories {
google()
mavenCentral()
jcenter()
maven(url = "https://jitpack.io")
}
}
tasks.register<Delete>("clean").configure {
delete(rootProject.buildDir)
}
tasks.register<Zip>("zipBackup") {
archiveFileName.set("backup_" +
java.time.LocalDateTime.now().format(java.time.format.DateTimeFormatter.ofPattern("yyyy_MM_dd_HH_mm_ss")) +
".zip")
from(project.rootDir) {
include("*")
include("app/**")
exclude("**/build")
exclude("backup**")
}
destinationDirectory.set(project.rootDir)
}