-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
29 lines (23 loc) · 778 Bytes
/
build.gradle
File metadata and controls
29 lines (23 loc) · 778 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
27
28
29
group 'io.github.chumper'
version '1.0-SNAPSHOT'
apply plugin: 'java'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.11'
testCompile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.2'
testCompile group: 'org.apache.httpcomponents', name: 'fluent-hc', version: '4.5.2'
compile "com.typesafe:config:1.3.1"
compile "org.mongodb:mongo-java-driver:3.3.0"
}
//create a single Jar with all dependencies
task fatJar(type: Jar) {
manifest {
attributes 'Main-Class': 'io.github.chumper.webserver.Main'
}
baseName = project.name + '-all'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}