-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
41 lines (32 loc) · 1.08 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id 'org.jetbrains.kotlin.multiplatform' version "$kotlin_version" apply false
id 'edu.wpi.first.GradleRIO' version "$gradlerio_version" apply false
}
subprojects {
group 'com.lynbrookrobotics'
version '1.0.0'
// roborio runs on Java 11
// https://github.com/wpilibsuite/frc-openjdk-roborio
tasks.withType(JavaCompile) {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
tasks.withType(KotlinCompile).all {
kotlinOptions {
jvmTarget = '11'
// Ignore inline class and unsigned type experimental feature warnings
freeCompilerArgs += [
'-Xinline-classes',
'-Xopt-in=kotlin.ExperimentalUnsignedTypes'
]
}
}
// https://guides.gradle.org/performance/#parallel_test_execution
tasks.withType(Test) {
maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
}
repositories {
jcenter()
}
}