-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
executable file
·60 lines (51 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
/**
Template file for classes using GradleRIO
@author Jaci
*/
buildscript {
repositories {
mavenCentral()
maven {
name = "GradleRIO"
url = "http://dev.imjac.in/maven"
}
}
dependencies {
classpath group: 'jaci.openrio.gradle', name: 'GradleRIO', version: '1.1.6' //Change this line if you wish to Update GradleRIO
}
}
apply plugin: 'GradleRIO' //Apply the GradleRIO plugin
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
gradlerio.robotClass = "frc.team5333.core.RobotImpl" //The class for the main Robot Class. Used in manifest
//gradlerio.robotClass = "jaci.openrio.toast.core.Toast"
gradlerio.team = "5333" //Your FRC team number (e.g. 5333 for team 'Can't C#', or 47 for Chief Delphi)
//gradlerio.rioIP = "10.53.33.20" //Uncomment to specify the IP address of the RIO
def robotManifest = {
attributes 'Main-Class': 'edu.wpi.first.wpilibj.RobotBase'
attributes 'Robot-Class': 'jaci.openrio.toast.core.Toast'
attributes 'Toast-Class': gradlerio.robotClass
}
repositories {
maven {
name = "Toast"
url = "http://dev.imjac.in/maven"
}
}
dependencies {
//compile fileTree(dir: 'libs', include:'*.jar')
//compile fileTree(dir: '../../../OpenRIO/Toast/build/libs', include: '*-DEV.jar')
compile group: 'jaci.openrio.toast', name: 'Toast', version: '0.1.1' //Change this line to update Toast
}
jar {
from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
manifest robotManifest
}
task genJavadoc(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives genJavadoc
}