-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
68 lines (55 loc) · 1.57 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
plugins {
id 'java'
}
group 'com.ubnt.discovery'
version '1.3.3'
compileJava.options.encoding = 'UTF-8'
sourceCompatibility = 13
targetCompatibility = 13
repositories {
mavenCentral()
}
dependencies {
// CLI support
implementation 'com.beust:jcommander:1.72'
// Library used for displaying SVG images
implementation 'org.apache.xmlgraphics:batik-all:1.16'
// Library used for a modern LookAndFeel. If you don't want to use this just
// leave the ubnt.ui.laf property empty in the ubnt-tool.properties file.
// Just comment out this line and the library won't be included in the project
// build.
implementation 'com.formdev:flatlaf:2.6'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
}
jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
manifest {
attributes('Main-Class': 'com.ubnt.discovery.UbntDiscoveryTool')
}
}
//noinspection ConfigurationAvoidance
task UbntTool(type: Jar) {
manifest.from jar.manifest
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from {
configurations.runtimeClasspath.collect {
it.isDirectory() ? it : zipTree(it)
}
} {
// preventing signed jars into the final JAR
exclude "META-INF/*.SF"
exclude "META-INF/*.DSA"
exclude "META-INF/*.RSA"
}
with jar
}
java {
withSourcesJar()
// Comment out the next statement if you don't want ot generate
// the Javadoc files
// withJavadocJar()
}
test {
useJUnitPlatform()
}