-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.gradle
More file actions
35 lines (27 loc) · 773 Bytes
/
build.gradle
File metadata and controls
35 lines (27 loc) · 773 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
30
31
32
33
34
version 'unspecified'
apply plugin: 'java'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
compile project(':src:common')
// https://mvnrepository.com/artifact/io.netty/netty-all
compile group: 'io.netty', name: 'netty-all', version: '4.1.32.Final'
}
jar {
manifest {
attributes 'Main-Class': 'app.Main'
}
}
task fatJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'Node',
'Implementation-Version': sourceCompatibility,
'Main-Class': 'app.Main'
}
baseName = project.name + '-all'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}