forked from Scarsz/ShareServer
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
43 lines (35 loc) · 935 Bytes
/
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
plugins {
id 'java'
}
group 'github.scarsz.shareserver'
version '1.0'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
compile 'org.slf4j:slf4j-jdk14:1.7.25'
compile 'com.h2database:h2:1.4.199'
compile 'com.sparkjava:spark-core:2.8.0'
compile 'org.apache.commons:commons-lang3:3.8.1'
}
jar {
from {
configurations.runtime.collect {
it.isDirectory() ? it : zipTree(it)
}
} {
// exclude meta-inf signatures
exclude "META-INF/*.SF"
exclude "META-INF/*.DSA"
exclude "META-INF/*.RSA"
}
// remove duplicate classes if introduced
jar.duplicatesStrategy = DuplicatesStrategy.EXCLUDE
manifest {
attributes 'Implementation-Title': 'ShareServer',
'Implementation-Version': version,
'Main-Class': 'github.scarsz.shareserver.Main'
}
baseName = 'ShareServer'
}