-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
71 lines (59 loc) · 1.98 KB
/
build.gradle
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
67
68
69
70
71
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
kotlinVersion = '1.4.32'
hiltVersion = "2.35"
ktLintVersion = "0.40.0"
ktLintWrapperVersion = "10.0.0"
detektVersion = "1.16.0"
}
repositories {
google()
jcenter()
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath "com.google.gms:google-services:4.3.5"
classpath "com.google.dagger:hilt-android-gradle-plugin:$hiltVersion"
classpath "com.google.firebase:firebase-crashlytics-gradle:2.5.2"
classpath "com.vanniktech:gradle-dependency-graph-generator-plugin:0.6.0-SNAPSHOT"
}
}
plugins {
id "org.jlleitschuh.gradle.ktlint" version "$ktLintWrapperVersion"
id "io.gitlab.arturbosch.detekt" version "$detektVersion"
}
apply plugin: "com.vanniktech.dependency.graph.generator"
apply from: rootProject.file("ktlint.gradle")
apply from: rootProject.file("versions.gradle")
allprojects {
apply from: rootProject.file("detekt.gradle")
repositories {
google()
jcenter()
maven { url "https://jitpack.io" }
}
}
wrapper {
gradleVersion = "6.5"
distributionType = Wrapper.DistributionType.ALL
}
subprojects { subProject ->
task allDependencies(type: DependencyReportTask) {}
project.plugins.withId("com.android.library") {
// TODO replace with https://issuetracker.google.com/issues/72050365 once released.
project.android.libraryVariants.all {
it.generateBuildConfigProvider.configure { it.enabled = false }
}
}
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
kotlinOptions {
jvmTarget = "1.8"
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}