-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
92 lines (78 loc) · 2.8 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
80
81
82
83
84
85
86
87
88
89
90
buildscript {
ext.kotlin_version = '1.5.20'
ext.okHttpVersion = "3.9.0"
ext.retrofitVersion = '2.4.0'
repositories {
jcenter()
flatDir { dirs "libs" }
maven { url "https://plugins.gradle.org/m2/" }
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.gradle.publish:plugin-publish-plugin:0.11.0"
//these are here only because they're dependencies of the buildChecks.jar
classpath "com.toddway:buildchecks"
classpath 'io.reactivex.rxjava2:rxjava:2.1.14'
classpath "com.squareup.retrofit2:retrofit:$retrofitVersion"
classpath "com.squareup.retrofit2:converter-gson:$retrofitVersion"
classpath "com.squareup.retrofit2:adapter-rxjava2:$retrofitVersion"
classpath "com.squareup.okhttp3:logging-interceptor:$okHttpVersion"
classpath "com.jakewharton.picnic:picnic:0.3.0"
}
}
plugins {
id "io.gitlab.arturbosch.detekt" version "1.18.1"
id 'de.aaschmid.cpd' version '3.2'
}
apply from: 'gradle/publish.gradle'
apply from: 'gradle/buildChecks.gradle'
apply from: 'gradle/jacoco.gradle'
apply from: 'gradle/cpd.gradle'
apply from: 'gradle/detekt.gradle'
task checks {
dependsOn 'cpdCheck'
dependsOn 'detekt'
dependsOn 'testCoverage'
finalizedBy 'printChecks'
dependsOn 'openChecks'
}
postChecks.dependsOn(checks)
postChecks.finalizedBy(pushArtifacts)
task copyJar(type: Copy) {
from "$buildDir/libs/buildChecks-${version}.jar"
into "$projectDir/libs/"
rename { "buildChecks.jar" }
}
build.dependsOn(copyJar)
publishPlugins.dependsOn(checks)
test {
testLogging.showStandardStreams = true
//ignoreFailures true
testLogging {
exceptionFormat = 'full'
showCauses true
showExceptions true
showStackTraces true
showStandardStreams true
events = ["passed", "skipped", "failed", "standardOut", "standardError"]
}
}
apply plugin: 'kotlin'
repositories {
jcenter()
}
dependencies {
implementation gradleApi()
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation 'io.reactivex.rxjava2:rxjava:2.1.14'
implementation "com.squareup.retrofit2:retrofit:$retrofitVersion"
implementation "com.squareup.retrofit2:converter-gson:$retrofitVersion"
implementation "com.squareup.retrofit2:adapter-rxjava2:$retrofitVersion"
implementation "com.squareup.okhttp3:logging-interceptor:$okHttpVersion"
implementation 'com.mitchtalmadge:ascii-data:1.4.0'
testImplementation 'junit:junit:4.12'
testImplementation 'com.nhaarman:mockito-kotlin:1.5.0'
testImplementation 'org.amshove.kluent:kluent:1.34'
testImplementation "io.mockk:mockk:1.10.2"
}