-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
executable file
·50 lines (41 loc) · 1.25 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
plugins {
id 'java-library'
}
tasks.withType(Zip).configureEach {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}
tasks.withType(Tar).configureEach {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}
tasks.withType(Jar).configureEach {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}
repositories {
mavenCentral()
}
dependencies {
api 'org.apache.commons:commons-math3:3.6.1'
implementation 'info.picocli:picocli:4.7.6'
implementation 'com.google.guava:guava:30.1.1-jre'
implementation fileTree(dir: 'lib', include: '*.jar')
}
jar {
from (configurations.compileClasspath.collect {it.isDirectory() ? it : zipTree(it)}) {
exclude 'META-INF/*.SF'
exclude 'META-INF/*.DSA'
exclude 'META-INF/*.RSA'
}
from (configurations.runtimeClasspath.collect {it.isDirectory() ? it : zipTree(it)}) {
exclude 'META-INF/*.SF'
exclude 'META-INF/*.DSA'
exclude 'META-INF/*.RSA'
}
manifest {
attributes 'Implementation-Title': 'dtd-normalizer',
'Implementation-Version': version,
'Built-By': System.getProperty('user.name'),
'Built-Date': new Date(),
'Built-JDK': System.getProperty('java.version'),
'Main-Class': 'ks.xml.dtd.DtdFlattener'
}
}