This repository has been archived by the owner on Jan 4, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
71 lines (59 loc) · 1.67 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
62
63
64
65
66
67
68
69
70
71
import jaci.openrio.gradle.GradleRIOPlugin
import jaci.openrio.gradle.frc.FRCJavaArtifact
import jaci.openrio.gradle.frc.RoboRIO
plugins {
id "java"
id "jaci.openrio.gradle.GradleRIO" version "2018.03.06"
}
group 'org.team1540'
sourceCompatibility = 1.8
repositories {
maven { url "https://jitpack.io" }
mavenCentral()
}
wpi {
ctreVersion = "5.3.1.0"
}
dependencies {
compile wpilib()
compile ctre()
compile navx()
compile pathfinder()
compile openrio.powerup.matchData()
compile "org.team1540:rooster:0.9.1"
}
def TEAM = 1540
//def ROBOT_CLASS = "org.team1540.robot2018.testing.WristTuningRobot"
//def ROBOT_CLASS = "org.team1540.robot2018.testing.ElevatorTuningRobot"
//def ROBOT_CLASS = "org.team1540.robot2018.testing.SpinnyTestRobot"
//def ROBOT_CLASS = "org.team1540.robot2018.testing.RobotMotorTest"
def ROBOT_CLASS = "org.team1540.robot2018.Robot"
task generateProfiles(type:Exec) {
workingDir 'profiles'
commandLine 'java', '-jar', '../generation/path-util.jar'
}
deploy {
targets {
target("roborio", RoboRIO) {
team = TEAM
}
}
artifacts {
artifact('frcJava', FRCJavaArtifact) {
targets << "roborio"
}
fileCollectionArtifact('motionProfiles') {
dependsOn("generateProfiles")
targets << 'roborio'
files = fileTree(dir: 'profiles/generated', include: "**/*.csv")
directory = "/home/lvuser/profiles"
}
}
}
jar {
from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
manifest GradleRIOPlugin.javaManifest(ROBOT_CLASS)
}
task wrapper(type: Wrapper) {
gradleVersion = '4.4'
}