-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
38 lines (32 loc) · 917 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
plugins {
id 'java'
}
group 'native-playground'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
task tuntapExample(type: Jar) {
manifest {
attributes 'Implementation-Title': 'native testing',
'Implementation-Version': version,
'Main-Class': 'TunTapTest'
}
baseName = project.name + '-tuntap'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
task socketExample(type: Jar) {
manifest {
attributes 'Implementation-Title': 'native testing',
'Implementation-Version': version,
'Main-Class': 'SocketTest'
}
baseName = project.name + '-socket'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
}