-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
26 lines (23 loc) · 839 Bytes
/
build.gradle
File metadata and controls
26 lines (23 loc) · 839 Bytes
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
apply plugin: 'java'
version = '0.1'
// Task for building a fat jar in the root directory
task fatty(type: Jar) {
manifest {
attributes 'Implementation-Title': 'Java Networking with gzip and UDP',
'Implementation-Version': version,
'Main-Class': 'Main'
}
baseName = project.name + '-all'
destinationDir = file("$rootDir/")
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
finalizedBy "clean"
}
repositories {
mavenCentral()
}
dependencies {
compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.8.8'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.8.8'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: '2.8.0'
}