Files
allwpilib/wpilibjIntegrationTests/build.gradle
Tyler Veness 7269a170fb Upgrade maven deps to latest versions and fix new linter errors (#3772)
This also makes the Gradle build work with JDK 17.

The extra JVM args in gradle.properties works around a bug with spotless
and JDK 17: https://github.com/diffplug/spotless/issues/834

PMD.CloseResource was ignored because it's almost always a false
positive, and there are many of them.
2021-12-09 12:20:08 -08:00

51 lines
1.2 KiB
Groovy

plugins {
id 'java'
id 'application'
}
ext {
useJava = true
useCpp = false
skipDev = true
}
apply from: "${rootDir}/shared/opencv.gradle"
mainClassName = 'edu.wpi.first.wpilibj.test.AntJunitLauncher'
apply plugin: 'com.github.johnrengelman.shadow'
repositories {
mavenCentral()
}
dependencies {
implementation project(':wpilibj')
implementation project(':wpimath')
implementation project(':hal')
implementation project(':wpiutil')
implementation project(':ntcore')
implementation project(':cscore')
implementation project(':cameraserver')
implementation 'junit:junit:4.13.2'
testImplementation 'org.hamcrest:hamcrest-all:1.3'
implementation 'com.googlecode.junit-toolbox:junit-toolbox:2.4'
implementation 'org.apache.ant:ant:1.10.12'
implementation 'org.apache.ant:ant-junit:1.10.12'
}
build.dependsOn shadowJar
def testOutputFolder = file("${project(':').buildDir}/integrationTestFiles")
task copyWpilibJIntegrationTestJarToOutput(type: Copy) {
destinationDir testOutputFolder
dependsOn shadowJar
inputs.file shadowJar.archivePath
from(shadowJar) {
into 'java'
}
}
build.dependsOn copyWpilibJIntegrationTestJarToOutput