forked from mozilla-mobile/focus-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
79 lines (67 loc) · 2.37 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
72
73
74
75
76
77
78
79
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.architecture_components_version = '1.1.1'
ext.support_libraries_version = '28.0.0'
ext.espresso_version = '3.0.1'
ext.kotlin_version = '1.3.0'
ext.coroutines_version = '1.0.1'
ext.geckoview_revision = '448b0b631dd99e6e27559598c1cc191d4cbf10f7'
ext.geckoview_version = '64.0.20181214004633' // GV 64 Rel Branch 12.14.2018
ext.spotbugs_version = '3.1.4'
ext.mozilla_components_version = '0.32.0'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'de.mannodermaus.gradle.plugins:android-junit5:1.3.1.1'
classpath 'org.ajoberstar:grgit:1.5.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "gradle.plugin.com.github.spotbugs:spotbugs-gradle-plugin:1.6.1"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
plugins {
// The version number is duplicated in the detekt block. We are unable to use constants due to
// limitations of the gradle plugin. We've decided to stick with duplication for now since the
// other methods involve using undocumented APIs
// https://docs.gradle.org/current/userguide/plugins.html#plugins_dsl_limitations
id "io.gitlab.arturbosch.detekt" version "1.0.0.RC6-3"
id "org.jetbrains.kotlin.kapt" version "1.2.50"
}
detekt {
// The version number is duplicated, please refer to plugins block for more details
version = "1.0.0.RC6-3"
profile("main") {
input = "$projectDir"
config = "$projectDir/quality/detekt.yml"
filters = ".*test.*,.*/resources/.*,.*/tmp/.*"
output = "$projectDir/app/build/reports/detekt"
}
}
allprojects {
repositories {
google()
maven {
url "https://maven.mozilla.org/maven2"
}
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
configurations {
ktlint
}
dependencies {
ktlint "com.github.shyiko:ktlint:0.21.0"
}
task ktlint(type: JavaExec, group: "verification") {
description = "Check Kotlin code style."
classpath = configurations.ktlint
main = "com.github.shyiko.ktlint.Main"
args "**/*.kt"
}