-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
72 lines (60 loc) · 1.9 KB
/
build.gradle
File metadata and controls
72 lines (60 loc) · 1.9 KB
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
plugins {
id "edu.wpi.first.GradleRIO" version "2019.4.1"
id 'org.jetbrains.kotlin.jvm' version '1.3.20'
id "io.gitlab.arturbosch.detekt" version "1.0.0-RC14"
}
def ROBOT_MAIN_CLASS = "frc.team6502.robot.Main"
deploy {
targets {
roboRIO("roborio") {
team = frc.getTeamNumber()
}
}
artifacts {
fileTreeArtifact('frcStaticFileDeploy') {
// The directory below is the local directory to deploy
files = fileTree(dir: 'src/main/deploy')
// Deploy to RoboRIO target, into /home/lvuser/deploy
targets << "roborio"
directory = '/home/lvuser/deploy'
}
frcJavaArtifact('frcJava') {
targets << "roborio"
debug = frc.getDebugOrDefault(false)
}
}
}
def includeDesktopSupport = true
repositories {
mavenCentral()
mavenLocal()
jcenter()
}
dependencies {
// wpilib deps
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)
testCompile 'junit:junit:4.12'
compile 'org.nield:kotlin-statistics:1.2.1'
implementation "com.google.code.gson:gson:2.8.5"
// kyber
compile "frc.team6502:kyberlib:2019.1.4"
// kotlin
compile "org.jetbrains.kotlin:kotlin-stdlib:1.3.20"
}
detekt {
toolVersion = "1.0.0-RC14"
input = files('src/main/kotlin')
}
// 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 edu.wpi.first.gradlerio.GradleRIOPlugin.javaManifest(ROBOT_MAIN_CLASS)
}
sourceSets {
main.kotlin.srcDirs = ['src/main/kotlin']
}