-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
46 lines (39 loc) · 1.04 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 'idea'
id 'edu.wpi.first.GradleRIO' version '2019.4.1'
}
group 'frc.team3238'
version '3.0.0-spokane'
def ROBOT_MAIN_CLASS = "frc.team3238.robot.Main"
deploy {
targets {
roboRIO("roborio") {
team = frc.getTeamNumber()
}
}
artifacts {
frcJavaArtifact("roborio") {
targets << "roborio"
debug = frc.getDebugOrDefault(false)
}
fileTreeArtifact('frcStaticFileDeploy') {
files = fileTree(dir: 'src/main/deploy')
targets << 'roborio'
directory = '/home/lvuser/deploy'
}
}
}
jar {
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
manifest edu.wpi.first.gradlerio.GradleRIOPlugin.javaManifest(ROBOT_MAIN_CLASS)
}
dependencies {
compile wpi.deps.wpilib()
compile wpi.deps.vendor.java()
nativeZip wpi.deps.vendor.jni(wpi.platforms.roborio)
nativeDesktopZip wpi.deps.vendor.jni(wpi.platforms.desktop)
}
wrapper {
gradleVersion = '5.0'
}