forked from FRCTeam2910/2019CompetitionRobot-Public
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
65 lines (52 loc) · 1.47 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
plugins {
id 'edu.wpi.first.GradleRIO' version '2019.3.2'
id 'java'
}
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
repositories {
mavenCentral()
// CTRE maven repository for Phoenix library (Talon SRX drivers, Victor SPX, etc.)
maven {
url = 'http://devsite.ctr-electronics.com/maven/release/'
}
// KauaiLabs maven repository for NavX drivers
maven {
url = 'https://www.kauailabs.com/maven2/'
}
maven {
url = "http://www.revrobotics.com/content/sw/max/sdk/maven/"
}
maven {
url = 'http://first.wpi.edu/FRC/roborio/maven/release/'
}
}
deploy {
targets {
roboRIO('roborio') {
team = frc.getTeamOrDefault(2910)
}
}
artifacts {
frcJavaArtifact('frcJava') {
targets << 'roborio'
debug = frc.getDebugOrDefault(false)
}
}
}
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)
compile project(':common:robot')
compile project(':vision-coprocessor:api')
}
jar {
from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
manifest edu.wpi.first.gradlerio.GradleRIOPlugin.javaManifest('org.frcteam2910.c2019.Main')
}
wrapper {
distributionType = Wrapper.DistributionType.ALL
gradleVersion = '5.1'
}