Files
allwpilib/wpilibjIntegrationTests/build.gradle

54 lines
1.3 KiB
Groovy
Raw Normal View History

plugins {
id 'java'
id 'application'
}
2018-04-29 13:29:07 -07:00
ext {
useJava = true
useCpp = false
skipDev = true
}
2018-04-29 13:29:07 -07:00
apply from: "${rootDir}/shared/opencv.gradle"
mainClassName = 'edu.wpi.first.wpilibj.test.AntJunitLauncher'
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
}
dependencies {
2019-11-12 17:14:04 -08:00
implementation project(':wpilibj')
implementation project(':wpimath')
2019-11-12 17:14:04 -08:00
implementation project(':hal')
implementation project(':wpiutil')
implementation project(':wpinet')
2019-11-12 17:14:04 -08:00
implementation project(':ntcore')
implementation project(':cscore')
implementation project(':cameraserver')
implementation 'junit:junit:4.13.2'
2019-11-12 17:14:04 -08:00
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
2018-04-29 13:29:07 -07:00
inputs.file shadowJar.archivePath
from(shadowJar) {
into 'java'
}
}
build.dependsOn copyWpilibJIntegrationTestJarToOutput