blob: 2fc6793f035dafd1467411dcb887933328e6cfbd [file] [log] [blame]
Brian Silverman41cdd3e2019-01-19 19:48:58 -08001plugins {
2 id 'java'
3 id 'application'
4}
5
6ext {
7 useJava = true
8 useCpp = false
9 skipDev = true
10}
11
12apply from: "${rootDir}/shared/opencv.gradle"
13
14mainClassName = 'edu.wpi.first.wpilibj.test.AntJunitLanucher'
15
16apply plugin: 'com.github.johnrengelman.shadow'
17
18repositories {
19 mavenCentral()
20}
21
22dependencies {
23 compile project(':wpilibj')
24 compile project(':hal')
25 compile project(':wpiutil')
26 compile project(':ntcore')
27 compile project(':cscore')
28 compile project(':cameraserver')
29 compile 'junit:junit:4.11'
30 testCompile 'org.hamcrest:hamcrest-all:1.3'
31 compile 'com.googlecode.junit-toolbox:junit-toolbox:2.0'
32 compile 'org.apache.ant:ant:1.9.4'
33 compile 'org.apache.ant:ant-junit:1.9.4'
34}
35
36build.dependsOn shadowJar
37
38def testOutputFolder = file("${project(':').buildDir}/integrationTestFiles")
39
40task copyWpilibJIntegrationTestJarToOutput(type: Copy) {
41 destinationDir testOutputFolder
42 dependsOn shadowJar
43 inputs.file shadowJar.archivePath
44 from(shadowJar) {
45 into 'java'
46 }
47}
48
49build.dependsOn copyWpilibJIntegrationTestJarToOutput