-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathbuild.gradle
62 lines (59 loc) · 1.62 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
buildscript {
repositories {
maven { url 'https://dl.google.com/dl/android/maven2/' }
jcenter()
google()
}
dependencies {
apply from: 'dependencies.gradle'
classpath buildPlugins.gradle
classpath buildPlugins.kotlin
}
}
allprojects {
repositories {
jcenter()
maven { url 'https://maven.google.com' }
maven { url "https://jitpack.io" }
mavenCentral()
maven {
url 'http://www.idescout.com/maven/repo/'
name 'IDEScout, Inc.'
}
}
}
subprojects {
// Detek
def detekVersion = "1.0.0.M10.2"
repositories {
mavenCentral()
maven { url "https://jitpack.io" }
maven { url "http://dl.bintray.com/arturbosch/code-analysis" }
google()
}
configurations {
detekt
}
dependencies {
detekt "io.gitlab.arturbosch.detekt:detekt-cli:$detekVersion"
detekt "io.gitlab.arturbosch.detekt:detekt-formatting:$detekVersion"
}
task detekt(type: JavaExec) {
main = "io.gitlab.arturbosch.detekt.cli.Main"
classpath = configurations.detekt
def input = "$project.projectDir.absolutePath"
def config = "$rootDir/detekt.yml"
def filters = ".*test.*"
def rulesets = " "
def params = ['-p', input, '-c', config, '-f', filters, '-r', rulesets]
args(params)
}
// Tests copy
task copyTestClasses(type: Copy) {
from "build/tmp/kotlin-classes/debugUnitTest"
into "build/intermediates/classes/debug"
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}