mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
50 lines
1.1 KiB
Groovy
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
|