70 lines
2.3 KiB
Groovy
70 lines
2.3 KiB
Groovy
/*
|
|
* 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 take a look at the 'Building Java & JVM projects' chapter in the Gradle
|
|
* User Manual available at https://docs.gradle.org/7.4.2/userguide/building_java_projects.html
|
|
*/
|
|
|
|
import org.gradle.internal.os.OperatingSystem
|
|
|
|
plugins {
|
|
// Apply the java-library plugin for API and implementation separation.
|
|
id 'java'
|
|
id "edu.wpi.first.GradleRIO" version "${wpiVersion}"
|
|
}
|
|
|
|
java {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
|
|
repositories {
|
|
// Use Maven Central for resolving dependencies.
|
|
mavenCentral()
|
|
mavenLocal()
|
|
gradlePluginPortal()
|
|
|
|
maven {url "https://maven.ctr-electronics.com/release/"}
|
|
maven {url "https://maven.revrobotics.com/"}
|
|
maven {url "https://frcmaven.wpi.edu/artifactory/littletonrobotics-mvn-release/"}
|
|
}
|
|
|
|
dependencies {
|
|
// Use JUnit Jupiter for testing.
|
|
testImplementation 'org.junit.jupiter:junit-jupiter:5.10.1'
|
|
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
|
|
|
|
// WPI Lib
|
|
implementation "edu.wpi.first.cscore:cscore-java:$wpiVersion"
|
|
implementation "edu.wpi.first.cameraserver:cameraserver-java:$wpiVersion"
|
|
implementation "edu.wpi.first.ntcore:ntcore-java:$wpiVersion"
|
|
implementation "edu.wpi.first.wpilibj:wpilibj-java:$wpiVersion"
|
|
implementation "edu.wpi.first.wpiutil:wpiutil-java:$wpiVersion"
|
|
implementation "edu.wpi.first.wpimath:wpimath-java:$wpiVersion"
|
|
implementation "edu.wpi.first.wpiunits:wpiunits-java:$wpiVersion"
|
|
implementation "edu.wpi.first.hal:hal-java:$wpiVersion"
|
|
implementation "edu.wpi.first.wpilibNewCommands:wpilibNewCommands-java:$wpiVersion"
|
|
|
|
// CTRE Phoenix 6
|
|
implementation "com.ctre.phoenix6:wpiapi-java:${ctreVersion}"
|
|
|
|
// CTRE Phoenix 5
|
|
implementation "com.ctre.phoenix:api-java:${ctre5Version}"
|
|
implementation "com.ctre.phoenix:wpiapi-java:${ctre5Version}"
|
|
|
|
// Revlib
|
|
implementation "com.revrobotics.frc:REVLib-java:2026.0.4"
|
|
|
|
// AdvantageKit
|
|
implementation "org.littletonrobotics.akit:akit-java:${advantageKitVersion}"
|
|
|
|
}
|
|
|
|
tasks.named('test') {
|
|
// Use JUnit Platform for unit tests.
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
apply from: 'publish.gradle'
|