-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
61 lines (51 loc) · 1.23 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
plugins {
id 'java'
id 'distribution'
id 'application'
}
ext {
os_name = System.properties['os.name'].toLowerCase();
os_arch = System.getProperty("os.arch").replace('_', '-')
if (os_name.contains('mac')) {
os_name = 'osx'
}
}
application {
mainClassName = 'org.ironriders.nttestserver.NTTestServer'
}
dependencies {
// package :name :version
compile 'edu.wpi.first.wpiutil:wpiutil-java:2019.3.1'
compile 'edu.wpi.first.ntcore:ntcore-java:2019.3.1'
runtime 'edu.wpi.first.ntcore:ntcore-java:2019.3.1'
}
distributions {
main {
baseName = 'nt-test-server'
contents {
from ("src/main/resources/${project.os_name}/${project.os_arch}") {
// OS X
include '*.dylib'
into 'lib'
}
}
}
}
jar {
manifest {
attributes "Main-Class": "org.ironriders.nttestserver.NTTestServer"
}
}
repositories {
maven {
url '/Users/jluetke/frc2019/maven'
}
}
task copyLibs(type: Copy) {
from ("src/main/resources/${project.os_name}/${project.os_arch}") {
// OS X
include '*.dylib'
}
into '.'
}
run.dependsOn copyLibs