-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
56 lines (47 loc) · 1.18 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
plugins {
id "org.jetbrains.kotlin.jvm" version "1.2.21"
id "eclipse"
id "idea"
id "jaci.openrio.gradle.GradleRIO" version "2018.03.06"
}
def TEAM = 2186
def ROBOT_CLASS = "frc.team2186.robot.Robot"
ext.kotlin_version = "1.2.21"
deploy {
targets {
target("roborio", jaci.openrio.gradle.frc.RoboRIO) {
team = TEAM
}
}
artifacts {
// We still use FRCJavaArtifact since kotlin does respond as a Java build.
artifact('frcKotlin', jaci.openrio.gradle.frc.FRCJavaArtifact) {
targets << "roborio"
jar = 'jar'
}
}
}
repositories {
mavenCentral()
jcenter()
}
dependencies {
compile wpilib()
compile ctre()
compile navx()
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
compile "org.jetbrains.kotlinx:kotlinx-coroutines-core:0.21"
compile 'com.google.code.gson:gson:2.8.2'
}
jar {
from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
manifest jaci.openrio.gradle.GradleRIOPlugin.javaManifest(ROBOT_CLASS)
}
task wrapper(type: Wrapper) {
gradleVersion = '4.4'
}
kotlin {
experimental {
coroutines "enable"
}
}