-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
54 lines (47 loc) · 1.22 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
buildscript {
repositories {
mavenCentral()
maven {
name = "GradleRIO"
url = "http://dev.imjac.in/maven"
}
}
dependencies {
classpath group: 'jaci.openrio.gradle', name: 'GradleRIO', version: '+' // Change this line if you wish to update GradleRIO
}
}
repositories {
jcenter()
flatDir {
dirs 'lib/navx'
}
flatDir {
dirs 'lib/Pathfinder'
}
}
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'GradleRIO' // Apply the GradleRIO plugin
gradlerio.robotClass = "org.usfirst.frc.team2084.CMonster2016.Robot" // The class for the main Robot Class. Used in manifest
gradlerio.team = "2084" // FRC team number
gradlerio.rioIP = "10.20.84.2" // Static IP address IP address of the roboRIO
dependencies {
compile project(':VisionProcessor2016')
compile ':navx_frc'
compile ':Pathfinder'
testCompile 'junit:junit:4.+'
testCompile 'org.hamcrest:hamcrest-library:1.+'
testCompile 'org.mockito:mockito-core:1.+'
}
javadoc {
failOnError false
}
def robotManifest = {
attributes 'Main-Class': 'edu.wpi.first.wpilibj.RobotBase'
attributes 'Robot-Class': gradlerio.robotClass
}
jar {
from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
manifest robotManifest
}