-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
46 lines (36 loc) · 1.03 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
plugins {
id 'java'
id 'application'
}
group 'com.github.douglasdc3'
version '2.0.0-SNAPSHOT'
description = """Simple app which uses a running dump1090 instance to record dump1090 to rolling log file."""
mainClassName = 'com.github.douglasdc3.dump1090recorder.Main'
repositories {
mavenCentral()
}
dependencies {
implementation 'commons-cli:commons-cli:1.5.0'
implementation 'com.vlkan.rfos:rotating-fos:0.9.5'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
}
test {
useJUnitPlatform()
}
jar {
archiveFileName = 'dump1090-recorder.jar'
manifest {
attributes["Main-Class"] = mainClassName
}
}
task fatJar(type: Jar) {
archiveFileName = 'dump1090-recorder.jar'
manifest {
attributes 'Main-Class': "${mainClassName}"
}
archiveBaseName = "${rootProject.name}"
from { configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
build.dependsOn(fatJar)