-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.gradle
68 lines (56 loc) · 1.91 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
57
58
59
60
61
62
63
64
65
66
67
68
plugins {
id "java"
id "edu.wpi.first.GradleRIO" version "2021.2.2"
id "maven"
id "maven-publish"
}
// Makes composite builds work
project.group = "com.github.Spartronics4915"
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
// Set this to true to enable desktop support.
def includeDesktopSupport = true
// Maven central needed for JUnit
repositories {
mavenCentral()
maven {url "https://jitpack.io/"}
}
dependencies {
implementation wpi.deps.wpilib()
nativeZip wpi.deps.wpilibJni(wpi.platforms.roborio)
nativeDesktopZip wpi.deps.wpilibJni(wpi.platforms.desktop)
implementation wpi.deps.vendor.java()
nativeZip wpi.deps.vendor.jni(wpi.platforms.roborio)
nativeDesktopZip wpi.deps.vendor.jni(wpi.platforms.desktop)
implementation("gov.nist.math:jama:1.0.3")
implementation("org.ejml:ejml-simple:0.38")
implementation("org.apache.commons:commons-math3:3.6.1")
implementation("com.fazecast:jSerialComm:2.4.1")
testImplementation("org.knowm.xchart:xchart:3.2.2")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.3.2")
testRuntime("org.junit.jupiter:junit-jupiter-engine:5.3.2")
simulation wpi.deps.sim.gui(wpi.platforms.desktop, false)
}
publishing {
publications {
maven(MavenPublication) {
groupId = "com.spartronics4915"
artifactId = "SpartronicsLib"
version = "2020.1.0"
from components.java
}
}
}
test {
useJUnitPlatform {
// Some tests only work if you have the right stuff plugged in
// Pass -PallTests if you want tests with the excluded tags
if (!project.hasProperty("allTests")) {
excludeTags "hardwareDependant"
}
}
testLogging {
events "PASSED", "SKIPPED", "FAILED"
exceptionFormat "full"
}
}