Brian Silverman | 41cdd3e | 2019-01-19 19:48:58 -0800 | [diff] [blame] | 1 | plugins { |
| 2 | id 'java' |
| 3 | id 'application' |
| 4 | } |
| 5 | |
| 6 | ext { |
| 7 | useJava = true |
| 8 | useCpp = false |
| 9 | skipDev = true |
| 10 | } |
| 11 | |
| 12 | apply from: "${rootDir}/shared/opencv.gradle" |
| 13 | |
| 14 | mainClassName = 'edu.wpi.first.wpilibj.test.AntJunitLanucher' |
| 15 | |
| 16 | apply plugin: 'com.github.johnrengelman.shadow' |
| 17 | |
| 18 | repositories { |
| 19 | mavenCentral() |
| 20 | } |
| 21 | |
| 22 | dependencies { |
| 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 | |
| 36 | build.dependsOn shadowJar |
| 37 | |
| 38 | def testOutputFolder = file("${project(':').buildDir}/integrationTestFiles") |
| 39 | |
| 40 | task copyWpilibJIntegrationTestJarToOutput(type: Copy) { |
| 41 | destinationDir testOutputFolder |
| 42 | dependsOn shadowJar |
| 43 | inputs.file shadowJar.archivePath |
| 44 | from(shadowJar) { |
| 45 | into 'java' |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | build.dependsOn copyWpilibJIntegrationTestJarToOutput |