forked from CIRDLES/Topsoil
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
106 lines (86 loc) · 2.5 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
105
106
plugins {
id 'jacoco'
id 'com.github.kt3k.coveralls' version '2.6.3'
}
allprojects {
apply plugin: 'java'
apply plugin: 'jacoco'
sourceCompatibility = 8
targetCompatibility = 8
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
ext {
java9Compatible = JavaVersion.current().java9Compatible
}
repositories {
jcenter()
mavenLocal()
mavenCentral()
maven {
url 'https://jitpack.io'
}
maven {
url = 'http://maven.teamdev.com/repository/products'
}
}
}
subprojects {
// apply plugin: 'checkstyle'
// apply plugin: 'findbugs'
apply plugin: 'maven'
// checkstyle {
// configFile file("${rootProject.projectDir}/config/checkstyle/checkstyle.xml")
// toolVersion = '6.11.2'
// }
// findbugsTest {
// excludeFilterConfig = resources.text.fromString '''
// <FindBugsFilter>
// <Match>
// <Bug code="UrF"/>
// </Match>
// </FindBugsFilter>
// '''
// }
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
tasks.withType(FindBugs) {
reports {
html.enabled = true
xml.enabled = false
}
}
dependencies {
compile 'ch.qos.logback:logback-classic:1.1.3'
compile 'com.github.johnzeringue:extendsfx:v1.0.0-alpha.2'
compile 'com.github.cirdles:commons:0f628cc'
compile 'org.apache.pdfbox:pdfbox:2.0.13'
testCompile 'org.hamcrest:hamcrest-all:1.3'
testCompile 'com.google.code.findbugs:annotations:3.0.0'
testCompile 'com.google.jimfs:jimfs:1.0'
testCompile 'junit:junit:4.12'
testCompile 'org.assertj:assertj-core:3.3.0'
testCompile 'org.mockito:mockito-core:2.0.31-beta'
}
}
jacocoTestReport {
dependsOn test
sourceDirectories = files subprojects.sourceSets.main.allSource.srcDirs
classDirectories = files subprojects.sourceSets.main.output
executionData = files subprojects.jacocoTestReport.executionData
reports {
html.enabled true
xml.enabled true
}
}
coveralls {
sourceDirs = subprojects.sourceSets.main.allSource.srcDirs.flatten()
}