-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
51 lines (44 loc) · 1.55 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
apply plugin: 'kotlin-platform-jvm'
apply plugin: 'edu.wpi.first.GradleRIO'
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.1.1'
// implementation project(":architecture:jvmfrc")
compileOnly 'com.github.Team846.2019-preseason:jvmfrc:01cffb1a47'
implementation wpi.deps.wpilib()
implementation wpi.deps.vendor.java()
nativeZip wpi.deps.vendor.jni(wpi.platforms.roborio)
nativeDesktopZip wpi.deps.vendor.jni(wpi.platforms.desktop)
}
repositories.maven { url 'https://jitpack.io' }
deploy {
targets {
roboRIO("roborio") {
team = 846
}
}
artifacts {
frcJavaArtifact(project.name) {
targets << "roborio"
jvmArgs << '-XX:+UseG1GC' << '-XX:MaxGCPauseMillis=50'
// jvmArgs << '-verbose:class'
// jvmArgs << '-verbosegc'
// arguments << 'myCustomArgs'
// debug = true
// debugPort = 8348
}
}
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
kotlinOptions.freeCompilerArgs += ["-XXLanguage:+InlineClasses"]
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
kotlinOptions.freeCompilerArgs += ["-XXLanguage:+InlineClasses"]
}
jar {
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
manifest edu.wpi.first.gradlerio.GradleRIOPlugin.javaManifest('com.lynbrookrobotics.kapuchin.FunkyRobotKt')
}