-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
85 lines (68 loc) · 2.14 KB
/
build.gradle
File metadata and controls
85 lines (68 loc) · 2.14 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Java library project to get you started.
* For more details on building Java & JVM projects, please refer to https://docs.gradle.org/8.8/userguide/building_java_projects.html in the Gradle documentation.
* This project uses @Incubating APIs which are subject to change.
*/
plugins {
// Apply the java-library plugin for API and implementation separation.
id 'java-library'
id 'maven-publish'
}
repositories {
// Use Maven Central for resolving dependencies.
mavenCentral()
// WPILib
maven {
url "https://frcmaven.wpi.edu/artifactory/release/"
}
// CTRE
maven {
url "https://maven.ctr-electronics.com/release/"
}
// REV
maven {
url "https://maven.revrobotics.com/"
}
// KAUAI
maven {
url "https://dev.studica.com/maven/release/2024/"
}
}
def WPI_Version = '2026.2.1'
def REV_Version = '2026.0.1'
def CTRE_Version = '24.3.0'
def KAUAI_Version = '2024.1.0'
dependencies {
// This dependency is exported to consumers, that is to say found on their compile classpath.
api libs.commons.math3
// This dependency is used internally, and not exposed to consumers on their own compile classpath.
implementation libs.guava
// WPILib
implementation "edu.wpi.first.wpilibj:wpilibj-java:$WPI_Version"
implementation "edu.wpi.first.wpiutil:wpiutil-java:$WPI_Version"
implementation "edu.wpi.first.hal:hal-java:$WPI_Version"
// REVRobotics
implementation "com.revrobotics.frc:REVLib-java:$REV_Version"
// CTRE
implementation "com.ctre.phoenix6:wpiapi-java:$CTRE_Version"
// KAUAI
implementation "com.kauailabs.navx.frc:navx-frc-java:$KAUAI_Version"
}
java {
withJavadocJar()
withSourcesJar()
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
publishing() {
publications {
maven(MavenPublication) {
group = 'com.autodesk.synthesis'
artifactId = 'SyntheSimJava'
version = '1.0.0'
from components.java
}
}
}