-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
104 lines (83 loc) · 2.66 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
92
93
94
95
96
97
98
99
100
101
102
103
104
/*
* Copyright (c) teris.io & Oleg Sklyar, 2017. All rights reserved
*/
import java.nio.file.Paths
buildscript {
repositories.jcenter()
dependencies.add("classpath", "com.silvertern.gradle:nox:0.15.0")
}
ext {
activemqBrokerModule = "org.apache.activemq:activemq-broker:5.15.2"
activemqClientModule = "org.apache.activemq:activemq-client:5.15.2"
activemqKahaDbModule = "org.apache.activemq:activemq-kahadb-store:5.15.2"
findbugsModule = "com.google.code.findbugs:jsr305:3.0.1"
geronimoJmsModule = "org.apache.geronimo.specs:geronimo-jms_1.1_spec:1.1.1"
gsonModule = "com.google.code.gson:gson:2.8.2"
jacksonDatabindModule = "com.fasterxml.jackson.core:jackson-databind:2.9.2"
jacksonDatatypeJSR310Module = "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.9.2"
logbackModule = "ch.qos.logback:logback-classic:1.2.3"
rabbitmqModule = "com.rabbitmq:amqp-client:5.1.2"
slf4jModule = "org.slf4j:slf4j-api:1.7.25"
vertxWebModule = "io.vertx:vertx-web:3.5.1"
vertxTestModule = "io.vertx:vertx-unit:3.5.1"
junitModule = "junit:junit:4.12"
mockitoModule = "org.mockito:mockito-core:2.12.0"
}
allprojects {
version = "0.6.0"
group = "io.teris.kite"
plugins.apply(JacocoPlugin)
repositories.jcenter()
}
subprojects {
plugins.apply(JavaPlugin)
plugins.apply(MavenPlugin)
task("integration", type: Test) {
enabled = false
dependsOn(test)
}
tasks.withType(AbstractCompile) {
sourceCompatibility = 1.8
targetCompatibility = 1.8
}
tasks.withType(Test) {
jacoco {
append = true
destinationFile = Paths.get(rootProject.buildDir.absolutePath, "jacoco", project.name + "-" + name + ".exec").toFile()
}
}
jacocoTestReport.reports {
xml.enabled = false
html.enabled = false
csv.enabled = false
}
task("sourcesJar", type: Jar, dependsOn: classes) {
classifier = "sources"
from(sourceSets.main.allSource)
}
javadoc {
failOnError false
options.addStringOption('Xdoclint:none', '-quiet')
}
task("javadocJar", type: Jar, dependsOn: javadoc) {
classifier = "javadoc"
from(javadoc.destinationDir)
}
artifacts.add("archives", sourcesJar)
artifacts.add("archives", javadocJar)
}
task("clean", type: Delete) {
delete(buildDir)
}
task("coverage", type: JacocoReport) {
dependsOn(subprojects*.integration)
executionData(fileTree(Paths.get(rootProject.buildDir.absolutePath, "jacoco").toFile()).include("*.exec"))
setSourceDirectories(files(subprojects*.sourceSets.main.java.srcDirs))
setClassDirectories(files(subprojects*.sourceSets.main.output))
reports {
xml.enabled = true
xml.setDestination(Paths.get(rootProject.buildDir.absolutePath, "reports", "jacoco", "report.xml").toFile())
html.enabled = false
csv.enabled = false
}
}