-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
42 lines (35 loc) · 939 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
41
42
plugins {
id 'java'
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.shuffleboard.Shuffleboard'
}
repositories {
maven {
url '/Users/jluetke/frc2019/maven'
}
}
dependencies {
// package :name :version
compile 'edu.wpi.first.hal:hal-java:2019.3.1'
compile 'edu.wpi.first.wpilibj:wpilibj-java:2019.3.1'
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'
}
task copyLibs(type: Copy) {
from ("src/main/resources/${project.os_name}/${project.os_arch}") {
// OS X
include '*.dylib'
}
into '.'
}
run.dependsOn copyLibs