-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
74 lines (60 loc) · 1.83 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
group 'us.ihmc.aci.dspro'
version '1.0'
buildscript {
ext.kotlin_version = '1.2.70'
repositories {
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'application'
apply plugin: 'maven'
group = 'com.github.ihmc'
mainClassName = 'us.ihmc.aci.dspro.pcap.ParserKt'
sourceCompatibility = 1.8
repositories {
jcenter()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
// pcap parser
compile group: 'io.pkts', name: 'pkts-core', version: '3.0.3'
compile group: 'io.pkts', name: 'pkts-streams', version: '3.0.3'
// database
compile 'com.github.seratch:kotliquery:1.2.1'
compile group: 'org.xerial', name: 'sqlite-jdbc', version: '3.25.2'
compile group: 'io.reactivex.rxjava2', name: 'rxkotlin', version: '2.3.0'
// json
compile group: 'com.beust', name: 'klaxon', version: '3.0.5'
compile group: 'commons-codec', name: 'commons-codec', version: '1.10'
compile 'com.google.guava:guava:23.3-jre'
testCompile group: 'junit', name: 'junit', version: '4.11'
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
//create a single Jar with all dependencies
task fatJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'DSPro pcap Reader',
'Implementation-Version': 0.1,
'Main-Class': mainClassName
}
baseName = project.name + '-all'
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}{
exclude "META-INF/*.SF"
exclude "META-INF/*.DSA"
exclude "META-INF/*.RSA"
}
with jar
}