-
Notifications
You must be signed in to change notification settings - Fork 152
/
build.gradle
78 lines (63 loc) · 1.49 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
apply {
plugin "base"
plugin "java"
plugin "checkstyle"
plugin "jacoco"
plugin "idea"
plugin "eclipse"
}
task wrapper(type: Wrapper) {
gradleVersion = '4.6'
}
repositories {
mavenLocal()
mavenCentral()
}
sourceCompatibility = JavaVersion.VERSION_1_8
group = "io.krakens"
archivesBaseName = "java-grok"
ext {
checkStyleToolVersion = "6.19"
jacocoToolVersion = "0.7.9"
commonsLang3Version = "3.7"
junitVersion = "4.12"
assertjVersion = "3.9.1"
guavaVersion = "24.0-jre"
}
dependencies {
compile "org.apache.commons:commons-lang3:$commonsLang3Version"
testCompile "junit:junit:$junitVersion"
testCompile "org.assertj:assertj-core:$assertjVersion"
testCompile "com.google.guava:guava:$guavaVersion"
}
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
// Needed to avoid including all the jar signing and sonatype setup.
if (project.hasProperty("withDeployment")) {
apply from: "$rootProject.projectDir/gradle/sonatype.gradle"
}
checkstyle {
configFile = file("${project.projectDir}/extra/checkstyle/checkstyle.xml")
toolVersion = "$checkStyleToolVersion"
}
checkstyleMain {
source = 'src/main/java'
doLast {
project.ext.checkType = "main"
}
}
jacoco {
toolVersion = "$jacocoToolVersion"
}
jacocoTestReport {
reports {
xml.enabled false
csv.enabled false
}
}