-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
63 lines (48 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
52
53
54
55
56
57
58
59
60
61
62
63
plugins {
id 'java-library'
id 'com.github.johnrengelman.shadow' version '8.1.1'
id "edu.wpi.first.GradleRIO" version "2024.2.1"
id 'edu.wpi.first.WpilibTools' version '1.3.0'
id 'com.diffplug.spotless' version '6.20.0'
}
wpilibTools.deps.wpilibVersion = "2024.3.2"
repositories {
mavenCentral()
maven {
url "https://repo.dairy.foundation/releases" // For coming soon features, isn't required for now
}
maven {
url "https://frcmaven.wpi.edu/artifactory/release/"
}
}
spotless {
java {
target '**/*.java'
googleJavaFormat('1.17.0') // Use the formatter version you prefer
}
}
println(wpi.versions.jacksonVersion.get())
println(wpi.versions.ejmlVersion.get())
println(wpi.versions.quickbufVersion.get())
dependencies {
// -- FRC LIBRARIES -- //
api wpilibTools.deps.wpilibJava("wpiutil")
api wpilibTools.deps.wpilibJava("wpiunits")
api group: "com.fasterxml.jackson.core", name: "jackson-annotations", version: "2.15.2"
api group: "com.fasterxml.jackson.core", name: "jackson-core", version: "2.15.2"
api group: "com.fasterxml.jackson.core", name: "jackson-databind", version: "2.15.2"
api group: "org.ejml", name: "ejml-simple", version: "0.43.1"
api "us.hebi.quickbuf:quickbuf-runtime:1.3.3"
}
apply from: 'publish.gradle'
wrapper {
gradleVersion '8.10.2'
}
// Specify the Java version
java {
sourceCompatibility = JavaVersion.VERSION_1_10
targetCompatibility = JavaVersion.VERSION_17
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}