Files
allwpilib/wpilibjIntegrationTests/build.gradle
Thad House 5551981b3f Upgrade to Gradle 5.0 (#1444)
Also skip raspbian for gazebo.
2018-11-29 23:17:06 -08:00

50 lines
1.1 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.AntJunitLanucher'
apply plugin: 'com.github.johnrengelman.shadow'
repositories {
mavenCentral()
}
dependencies {
compile project(':wpilibj')
compile project(':hal')
compile project(':wpiutil')
compile project(':ntcore')
compile project(':cscore')
compile project(':cameraserver')
compile 'junit:junit:4.11'
testCompile 'org.hamcrest:hamcrest-all:1.3'
compile 'com.googlecode.junit-toolbox:junit-toolbox:2.0'
compile 'org.apache.ant:ant:1.9.4'
compile 'org.apache.ant:ant-junit:1.9.4'
}
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