Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -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 | implementation project(':wpilibj') |
| 24 | implementation project(':hal') |
| 25 | implementation project(':wpiutil') |
| 26 | implementation project(':ntcore') |
| 27 | implementation project(':cscore') |
| 28 | implementation project(':cameraserver') |
| 29 | implementation 'junit:junit:4.11' |
| 30 | testImplementation 'org.hamcrest:hamcrest-all:1.3' |
| 31 | implementation 'com.googlecode.junit-toolbox:junit-toolbox:2.0' |
| 32 | implementation 'org.apache.ant:ant:1.9.4' |
| 33 | implementation '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 |