-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
45 lines (38 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
/**
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.3.0' //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 = "org.usfirst.frc.team2854.robot.Robot" //The class for the main Robot Class. Used in manifest
gradlerio.team = "2854" //Your FRC team number (e.g. 5333 for team 'Can't C#', or 47 for Chief Delphi)
//gradlerio.rioIP = "10.28.54.20" //Uncomment to specify the IP address of the RIO
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
}
task genJavadoc(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives genJavadoc
}