-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle
59 lines (48 loc) · 1.37 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
plugins {
id 'java-library'
}
def getVersionName = {
return "git -C ${projectDir} describe --tags".execute().text.trim()
}
version = getVersionName()
sourceCompatibility = '1.7'
repositories {
mavenCentral()
}
def manifestAttributes = [
"Main-Class": "itkach.slobber.Slobber",
"Implementation-Title": "Slobber",
"Implementation-Version": version
]
jar {
manifest {
attributes manifestAttributes
}
}
tasks.register('uberJar', Jar) {
archiveClassifier = 'all'
duplicatesStrategy = DuplicatesStrategy.INCLUDE
from sourceSets.main.output
manifest {
attributes manifestAttributes
}
dependsOn configurations.runtimeClasspath
from {
configurations.runtimeClasspath.findAll { it.name.endsWith('jar') }.collect { zipTree(it) }
}
def excludeList = project(":slobj").file("exclude.txt")
println("Excluding files listed in " + excludeList.path)
excludeList.eachLine {
line ->
if (!line.startsWith("#")) {
exclude line.trim()
}
}
}
dependencies {
implementation 'com.fasterxml.jackson.core:jackson-databind:2.4.2'
implementation 'com.fasterxml.jackson.core:jackson-core:2.4.2'
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.4.2'
api files('libs/simple-5.1.7.1.itkach.jar')
api project(':slobj')
}