forked from joshfriend/bunnypedia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
69 lines (58 loc) · 2.06 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.6.10'
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.4'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:2.3.5"
classpath 'com.google.gms:google-services:4.3.10'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.8.1'
}
}
plugins {
// Variables can't be used in 'plugins' block,
// so duplication of detekt version string is unavoidable in Gradle Groovy DSL for now.
// Others experiencing it: https://github.com/gradle/gradle/issues/3593
// Mozilla decided to live with the duplication: https://github.com/mozilla-mobile/focus-android/issues/1886
// Possible solution that requires changing to Gradle Kotlin DSL: https://github.com/gradle/gradle/issues/1697
id "io.gitlab.arturbosch.detekt" version "1.0.0-RC16"
}
allprojects {
repositories {
google()
mavenCentral()
maven { url "https://jitpack.io" }
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
allWarningsAsErrors = true
// jvmTarget = JavaVersion.VERSION_11
}
}
}
subprojects {
def detektVersion = "1.0.0-RC16"
apply plugin: 'io.gitlab.arturbosch.detekt'
detekt {
toolVersion = detektVersion
config = files("$rootProject.projectDir/detekt-config.yml")
baseline = file("$rootProject.projectDir/detekt-baseline.xml")
reports {
html {
enabled = true
destination = file("$project.buildDir/reports/detekt.html")
}
}
}
// enable detekt formatting rules
dependencies {
detektPlugins "io.gitlab.arturbosch.detekt:detekt-formatting:1.0.0-RC16"
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}