-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
91 lines (74 loc) · 1.9 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
91
buildscript {
ext.kotlin_version = '1.1.61'
ext.rxjava_version = '2.1.7'
repositories {
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.6.3'
classpath 'net.rdrei.android.buildtimetracker:gradle-plugin:0.5.0'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.6'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
}
}
apply plugin: 'kotlin'
apply plugin: 'signing'
apply plugin: 'jacoco'
apply plugin: 'com.github.kt3k.coveralls'
group = 'moe.pine'
version = '0.3.0'
archivesBaseName = 'rxkotlin-collections'
repositories {
jcenter()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
compile "io.reactivex.rxjava2:rxjava:$rxjava_version"
testCompile 'junit:junit:4.12'
testCompile "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
}
jacoco {
toolVersion = '0.7.6.201602180812'
}
jacocoTestReport {
reports {
xml.enabled true
csv.enabled false
html.enabled true
}
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
test.java.srcDirs += 'src/test/kotlin'
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
task sourcesJar(type: Jar) {
from sourceSets.main.java.srcDirs
classifier = 'sources'
}
artifacts {
archives javadocJar
archives sourcesJar
}
task wrapper(type: Wrapper) {
gradleVersion = '2.11'
}
task findConvensions << {
println project.getConvention()
}
apply plugin: 'build-time-tracker'
buildtimetracker {
reporters {
summary {
ordered false
threshold 50
barstyle "unicode"
}
}
}
apply from: './gradle/bintray.gradle'
check.dependsOn jacocoTestReport