2016-10-20 23:54:04 -07:00
|
|
|
plugins {
|
|
|
|
|
id 'java'
|
|
|
|
|
id 'application'
|
|
|
|
|
}
|
2016-05-20 13:48:41 -04:00
|
|
|
|
2018-04-29 13:29:07 -07:00
|
|
|
ext {
|
|
|
|
|
useJava = true
|
|
|
|
|
useCpp = false
|
|
|
|
|
skipDev = true
|
2016-05-20 13:48:41 -04:00
|
|
|
}
|
2015-09-24 20:26:49 -04:00
|
|
|
|
2018-04-29 13:29:07 -07:00
|
|
|
apply from: "${rootDir}/shared/opencv.gradle"
|
|
|
|
|
|
2021-09-24 16:04:02 -07:00
|
|
|
mainClassName = 'edu.wpi.first.wpilibj.test.AntJunitLauncher'
|
2015-09-24 20:26:49 -04:00
|
|
|
|
2018-04-29 13:29:07 -07:00
|
|
|
apply plugin: 'com.github.johnrengelman.shadow'
|
|
|
|
|
|
|
|
|
|
repositories {
|
2022-05-08 13:59:58 -07:00
|
|
|
maven {
|
|
|
|
|
url = 'https://frcmaven.wpi.edu/artifactory/ex-mvn'
|
|
|
|
|
}
|
2018-04-29 13:29:07 -07:00
|
|
|
}
|
|
|
|
|
|
2015-09-24 20:26:49 -04:00
|
|
|
dependencies {
|
2019-11-12 17:14:04 -08:00
|
|
|
implementation project(':wpilibj')
|
2020-08-06 23:57:39 -07:00
|
|
|
implementation project(':wpimath')
|
2019-11-12 17:14:04 -08:00
|
|
|
implementation project(':hal')
|
|
|
|
|
implementation project(':wpiutil')
|
2022-05-07 10:54:14 -07:00
|
|
|
implementation project(':wpinet')
|
2019-11-12 17:14:04 -08:00
|
|
|
implementation project(':ntcore')
|
|
|
|
|
implementation project(':cscore')
|
|
|
|
|
implementation project(':cameraserver')
|
2021-12-09 12:20:08 -08:00
|
|
|
implementation 'junit:junit:4.13.2'
|
2019-11-12 17:14:04 -08:00
|
|
|
testImplementation 'org.hamcrest:hamcrest-all:1.3'
|
2021-12-09 12:20:08 -08:00
|
|
|
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'
|
2015-09-24 20:26:49 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
build.dependsOn shadowJar
|
2016-10-25 20:46:09 -07:00
|
|
|
|
2017-08-18 21:35:53 -07:00
|
|
|
def testOutputFolder = file("${project(':').buildDir}/integrationTestFiles")
|
2016-10-25 20:46:09 -07:00
|
|
|
|
2017-08-18 21:35:53 -07:00
|
|
|
task copyWpilibJIntegrationTestJarToOutput(type: Copy) {
|
|
|
|
|
destinationDir testOutputFolder
|
2016-10-25 20:46:09 -07:00
|
|
|
dependsOn shadowJar
|
2018-04-29 13:29:07 -07:00
|
|
|
inputs.file shadowJar.archivePath
|
|
|
|
|
from(shadowJar) {
|
2017-08-18 21:35:53 -07:00
|
|
|
into 'java'
|
2016-11-06 21:47:18 -08:00
|
|
|
}
|
2016-10-25 20:46:09 -07:00
|
|
|
}
|
|
|
|
|
|
2017-08-18 21:35:53 -07:00
|
|
|
build.dependsOn copyWpilibJIntegrationTestJarToOutput
|