-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle
54 lines (45 loc) · 1.05 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
plugins {
id 'java'
id 'jacoco'
id 'application'
id 'com.github.hierynomus.license' version '0.15.0'
}
mainClassName = 'vtlcli.VelocityCli'
repositories {
jcenter()
}
dependencies {
compile 'org.apache.velocity:velocity:1.7'
compile 'info.picocli:picocli:3.6.1'
compile 'org.slf4j:slf4j-api:1.7.26'
compile 'org.slf4j:slf4j-simple:1.7.26'
compile 'org.yaml:snakeyaml:1.24'
testCompile 'junit:junit:4.12'
}
jacocoTestReport {
reports {
xml.enabled true
html.enabled true
}
}
check.dependsOn jacocoTestReport
license {
header = file('LICENSE_HEADER')
excludes(["**/*.yml"])
mapping {
java = 'SLASHSTAR_STYLE'
}
}
task fatJar(type: Jar) {
manifest {
attributes 'Main-Class': mainClassName,
'Implementation-Version': project.version
}
from {
configurations.runtime.collect { it.isDirectory() ? it : zipTree(it) }
}
with jar
destinationDir = project.buildDir
archiveName = 'vtl-cli.jar'
}
build.dependsOn fatJar