This repository was archived by the owner on Aug 2, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathbuild.gradle
More file actions
60 lines (46 loc) · 1.33 KB
/
build.gradle
File metadata and controls
60 lines (46 loc) · 1.33 KB
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
plugins {
id "java"
id "edu.wpi.first.GradleRIO" version "2019.1.1"
id "idea"
}
def ROBOT_MAIN_CLASS = "org.strykeforce.quickstart.Main"
deploy {
targets {
roboRIO("roborio") {
team = frc.getTeamNumber() // loaded from .wpilib/wpilib_preferences.json
}
}
artifacts {
frcJavaArtifact("frcJava") {
targets << "roborio"
debug = frc.getDebugOrDefault(false)
}
// Built in artifact to deploy arbitrary files to the roboRIO.
fileTreeArtifact("frcStaticFileDeploy") {
// The directory below is the local directory to deploy
files = fileTree(dir: "src/main/deploy")
// Deploy to RoboRIO target, into /home/lvuser/deploy
targets << "roborio"
directory = "/home/lvuser/deploy"
}
}
}
repositories {
jcenter()
}
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)
}
jar {
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
manifest edu.wpi.first.gradlerio.GradleRIOPlugin.javaManifest(ROBOT_MAIN_CLASS)
}
idea {
module {
downloadJavadoc = true
downloadSources = true
}
}