This repository has been archived by the owner on Jun 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathbuild.gradle
62 lines (52 loc) · 1.59 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = "1.5.30"
ext.ktlint_version = "0.41.0"
ext.jacoco_version = "0.8.7"
repositories {
google()
mavenCentral()
maven { url "https://maven.pkg.jetbrains.space/public/p/kotlinx-html/maven" }
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jacoco:org.jacoco.core:$jacoco_version"
classpath 'com.kncept.junit.reporter:junit-reporter:2.1.0'
classpath "com.google.protobuf:protobuf-gradle-plugin:0.8.12"
classpath "com.github.triplet.gradle:play-publisher:3.6.0"
}
}
plugins {
id("io.gitlab.arturbosch.detekt").version("1.17.0")
}
ext {
jacocoEnabled = System.properties.getProperty("jacocoEnabled") ?: "false"
}
subprojects {
apply {
plugin("io.gitlab.arturbosch.detekt")
}
tasks.detekt {
jvmTarget = "1.8"
}
detekt {
buildUponDefaultConfig = true
config = files("$rootDir/config/detekt/detekt.yml")
reports {
xml.enabled = false
html.enabled = true
txt.enabled = false
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
task("localBuild") {
dependsOn(":app:ktlint")
dependsOn(":app:testScenariosDebugUnitTest")
dependsOn(":app:connectedScenariosDebugAndroidTest")
}
defaultTasks("localBuild")