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 | |
Austin Schuh | 812d0d1 | 2021-11-04 20:16:48 -0700 | [diff] [blame] | 14 | mainClassName = 'edu.wpi.first.wpilibj.test.AntJunitLauncher' |
Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 15 | |
| 16 | apply plugin: 'com.github.johnrengelman.shadow' |
| 17 | |
| 18 | repositories { |
| 19 | mavenCentral() |
| 20 | } |
| 21 | |
| 22 | dependencies { |
| 23 | implementation project(':wpilibj') |
Austin Schuh | 1e69f94 | 2020-11-14 15:06:14 -0800 | [diff] [blame] | 24 | implementation project(':wpimath') |
Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 25 | implementation project(':hal') |
| 26 | implementation project(':wpiutil') |
| 27 | implementation project(':ntcore') |
| 28 | implementation project(':cscore') |
| 29 | implementation project(':cameraserver') |
Austin Schuh | 75263e3 | 2022-02-22 18:05:32 -0800 | [diff] [blame^] | 30 | implementation 'junit:junit:4.13.2' |
Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 31 | testImplementation 'org.hamcrest:hamcrest-all:1.3' |
Austin Schuh | 75263e3 | 2022-02-22 18:05:32 -0800 | [diff] [blame^] | 32 | implementation 'com.googlecode.junit-toolbox:junit-toolbox:2.4' |
| 33 | implementation 'org.apache.ant:ant:1.10.12' |
| 34 | implementation 'org.apache.ant:ant-junit:1.10.12' |
Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 35 | } |
| 36 | |
| 37 | build.dependsOn shadowJar |
| 38 | |
| 39 | def testOutputFolder = file("${project(':').buildDir}/integrationTestFiles") |
| 40 | |
| 41 | task copyWpilibJIntegrationTestJarToOutput(type: Copy) { |
| 42 | destinationDir testOutputFolder |
| 43 | dependsOn shadowJar |
| 44 | inputs.file shadowJar.archivePath |
| 45 | from(shadowJar) { |
| 46 | into 'java' |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | build.dependsOn copyWpilibJIntegrationTestJarToOutput |