forked from MarquezProject/marquez
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
92 lines (75 loc) · 1.71 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
plugins {
id 'java'
id 'application'
id 'com.github.johnrengelman.shadow' version '2.0.4'
id "com.diffplug.gradle.spotless" version '3.14.0'
id 'checkstyle'
id 'jacoco'
}
repositories {
mavenCentral()
}
dependencies {
compile 'io.dropwizard.modules:dropwizard-flyway:1.3.0-4'
compile 'io.dropwizard:dropwizard-core:1.3.7'
compile 'io.dropwizard:dropwizard-jdbi3:1.3.7'
compile 'org.jdbi:jdbi3-postgres:3.4.0'
compile 'org.jdbi:jdbi3-sqlobject:3.4.0'
compile 'org.postgresql:postgresql:42.2.4'
testCompile 'io.dropwizard:dropwizard-testing:1.3.7'
testCompile 'junit:junit:4.12'
testCompile 'org.jdbi:jdbi3-testing:3.3.0'
testCompile 'org.mockito:mockito-core:2.21.0'
}
compileJava {
options.incremental = true
}
compileTestJava {
options.incremental = true
}
mainClassName = 'marquez.MarquezApp'
shadowJar {
transform(com.github.jengelman.gradle.plugins.shadow.transformers.ServiceFileTransformer)
manifest {
attributes 'Main-Class': mainClassName
}
}
runShadow {
args = ['server', 'config.yml']
}
spotless {
java {
googleJavaFormat()
removeUnusedImports()
}
}
def reportsDir = "${buildDir}/reports";
checkstyle {
toolVersion = '8.12'
configFile = rootProject.file('checkstyle.xml')
}
task checkstyle(type: Checkstyle) {
reports {
xml.enabled = true
html.enabled = true
html.destination = file("${reportsDir}/checkstyle")
}
}
checkstyleMain {
source = 'src/main/java'
}
checkstyleTest {
source = 'src/test/java'
}
def coverageDir = "${reportsDir}/coverage";
jacoco {
toolVersion = '0.8.1'
reportsDir = file(coverageDir)
}
jacocoTestReport {
reports {
xml.enabled = true
html.enabled = true
html.destination = file(coverageDir)
}
}