-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle
More file actions
59 lines (48 loc) · 1.35 KB
/
build.gradle
File metadata and controls
59 lines (48 loc) · 1.35 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
plugins {
id "org.jetbrains.kotlin.jvm" version "1.3.10"
id "java"
id "application"
}
group 'org.team2471.frc'
version '1.0-SNAPSHOT'
def mainClass = 'org.team2471.frc.pathvisualizer.PathVisualizer'
sourceCompatibility = 1.8
ext.kotlin_version = "1.3.10"
repositories {
maven { url "http://first.wpi.edu/FRC/roborio/maven/release" }
maven { url "http://devsite.ctr-electronics.com/maven/release" }
maven { url "https://raw.githubusercontent.com/Open-RIO/Maven-Mirror/master/m2" }
mavenCentral()
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile group: 'junit', name: 'junit', version: '4.11'
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
compile "edu.wpi.first.ntcore:ntcore-java:2019.2.1"
compile "edu.wpi.first.ntcore:ntcore-jni:2019.2.1:all"
compile "edu.wpi.first.wpiutil:wpiutil-java:2019.2.1"
compile project("meanlib")
compile "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.0.0"
}
jar {
manifest {
attributes 'Main-Class': mainClass
}
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
}
run {
main = mainClass
}
startScripts {
mainClassName = mainClass
}
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}