-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
63 lines (53 loc) · 1.76 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
import edu.wpi.first.gradlerio.GradleRIOPlugin
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.3.10'
id "edu.wpi.first.GradleRIO" version "2019.4.1"
}
def MAIN_CLASS = "org.team2471.frc2019.Main"
deploy {
targets {
roboRIO("roborio") {
team = frc.getTeamNumber()
}
}
artifacts {
frcJavaArtifact('frcJava') {
targets << "roborio"
debug = frc.getDebugOrDefault(false)
}
fileTreeArtifact('frcStaticFileDeploy') {
files = fileTree(dir: 'src/main/deploy')
targets << "roborio"
directory = '/home/lvuser/deploy'
}
}
}
repositories {
mavenCentral()
maven { setUrl("http://first.wpi.edu/FRC/roborio/maven/release") }
maven { setUrl("http://devsite.ctr-electronics.com/maven/release/") }
maven { setUrl("http://maven.highcurrent.io/maven") }
maven { setUrl("http://www.revrobotics.com/content/sw/max/sdk/maven/") }
}
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 "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.10"
compile project("meanlib")
}
// 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 {
//noinspection GroovyAssignabilityCheck
from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
manifest GradleRIOPlugin.javaManifest(MAIN_CLASS)
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}