-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
70 lines (61 loc) · 2.17 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
plugins {
id 'java'
id 'maven'
}
group 'de.wolfig'
version '1.0'
task createJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'lexisnexis_heideltime',
'Implementation-Version': version,
'Main-Class': 'de.wolfig.Main'
}
def getGitHash = { ->
def stdout = new ByteArrayOutputStream()
exec {
commandLine 'git', 'rev-parse', '--short', 'HEAD'
standardOutput = stdout
}
return stdout.toString().trim()
}
baseName = project.name + '-' + getGitHash()
from {
configurations.compile.collect {
it.isDirectory() ? it : zipTree(it)
}
}
with jar
}
task writeNewPom {
doLast {
pom {
project {
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}
}
}.writeTo("./pom.xml")
}
}
repositories {
mavenCentral()
}
dependencies {
compile group: 'com.konghq', name: 'unirest-java', version: '3.7.02'
compile group: 'javax.ws.rs', name: 'jsr311-api', version: '1.1.1'
compile group: 'com.sun.jersey', name: 'jersey-bundle', version: '1.19.4'
compile group: 'com.fasterxml.jackson.dataformat', name: 'jackson-dataformat-xml', version: '2.11.0'
compile group: 'com.fasterxml.jackson.dataformat', name: 'jackson-dataformat-csv', version: '2.11.0'
compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.11.2'
compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.11.2'
compile group: 'com.jfoenix', name: 'jfoenix', version: '8.0.9'
compile group: 'io.datafx', name: 'flow', version: '8.0.1'
compile group: 'io.datafx', name: 'datafx', version: '8.0.1'
compile group: 'org.kordamp.ikonli', name:'ikonli-javafx', version: '2.4.0'
compile group: 'org.kordamp.ikonli', name: 'ikonli-fontawesome5-pack', version: '2.4.0'
testCompile group: 'junit', name: 'junit', version: '4.12'
}