forked from fhanik/sirenofshame-java
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
40 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
39
40
group 'com.sirenofshame.soscmd'
version '1.0'
apply plugin: 'java'
apply plugin: 'application'
mainClassName = "com.sirenofshame.soscmd.Main"
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
def usb4JavaVersion = '1.2.0'
dependencies {
compile group: 'org.usb4java', name: 'usb4java', version: usb4JavaVersion
compile group: 'org.usb4java', name: 'usb4java-javax', version: usb4JavaVersion
testCompile group: 'junit', name: 'junit', version: '4.11'
}
jar {
baseName = "soscmd"
version = "$version"
manifest {
attributes 'Implementation-Title': 'Siren of Shame Command',
'Implementation-Version': version,
'Main-Class': "$mainClassName"
}
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}
run {
if (project.hasProperty('args')) {
args project.args.split('\\s')
}
}