This repository has been archived by the owner on Mar 9, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
84 lines (71 loc) · 2.24 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
72
73
74
75
76
77
78
79
80
81
82
83
plugins {
id "java"
id "eclipse"
id "idea"
id "jaci.openrio.gradle.GradleRIO" version "2018.03.06"
id "org.sonarqube" version "2.6"
// id "net.ltgt.errorprone" version "0.0.13"
}
compileJava {
options.encoding = "UTF-8"
options.compilerArgs << "-Xlint:all"
}
compileTestJava {
options.encoding = "UTF-8"
options.compilerArgs << "-Xlint:all"
}
def TEAM = 2729
def ROBOT_CLASS = "robot.Robot"
// Define my targets (RoboRIO) and artifacts (deployable files)
// This is added by GradleRIO's backing project EmbeddedTools.
deploy {
targets {
target("roborio", jaci.openrio.gradle.frc.RoboRIO) {
team = TEAM
}
}
artifacts {
artifact('frcJava', jaci.openrio.gradle.frc.FRCJavaArtifact) {
targets << "roborio"
}
}
}
repositories {
mavenCentral()
flatDir {
dirs 'libs'
}
}
// Defining my dependencies. In this case, WPILib (+ friends), CTRE Toolsuite (Talon SRX)
// and NavX.
dependencies {
compile wpilib()
compile ctre()
compile navx()
compile openrio.powerup.matchData()
compile pathfinder()
compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.11.0'
compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.11.0'
compile name: 'json-simple-1.1.1'
// errorprone 'com.google.errorprone:error_prone_core:2.2.0'
//runtime fileTree(dir: 'libs', include: '*.jar')
}
// Setting up my Jar File. In this case, adding all libraries into the main jar ('fat jar')
// in order to make them all available at runtime. Also adding the manifest so WPILib
// knows where to look for our robot Class.
jar {
from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
manifest jaci.openrio.gradle.GradleRIOPlugin.javaManifest(ROBOT_CLASS)
}
task wrapper(type: Wrapper) {
gradleVersion = '4.5'
}
// GradleRIO reports some anonymous data to aid in future development
// This includes your gradle version, dependencies, plugins and versions.
// It does NOT include your IP address, username, password, or other confidential
// data.
// You can choose to disable this telemetry if you're paranoid.
// Telemetry is, by default, enabled.
telemetry {
reportTelemetry = false
}