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 { |
James Kuszmaul | cf32412 | 2023-01-14 14:07:17 -0800 | [diff] [blame^] | 19 | maven { |
| 20 | url = 'https://frcmaven.wpi.edu/artifactory/ex-mvn' |
| 21 | } |
Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 22 | } |
| 23 | |
| 24 | dependencies { |
| 25 | implementation project(':wpilibj') |
Austin Schuh | 1e69f94 | 2020-11-14 15:06:14 -0800 | [diff] [blame] | 26 | implementation project(':wpimath') |
Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 27 | implementation project(':hal') |
| 28 | implementation project(':wpiutil') |
James Kuszmaul | cf32412 | 2023-01-14 14:07:17 -0800 | [diff] [blame^] | 29 | implementation project(':wpinet') |
Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 30 | implementation project(':ntcore') |
| 31 | implementation project(':cscore') |
| 32 | implementation project(':cameraserver') |
Austin Schuh | 75263e3 | 2022-02-22 18:05:32 -0800 | [diff] [blame] | 33 | implementation 'junit:junit:4.13.2' |
Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 34 | testImplementation 'org.hamcrest:hamcrest-all:1.3' |
Austin Schuh | 75263e3 | 2022-02-22 18:05:32 -0800 | [diff] [blame] | 35 | implementation 'com.googlecode.junit-toolbox:junit-toolbox:2.4' |
| 36 | implementation 'org.apache.ant:ant:1.10.12' |
| 37 | implementation 'org.apache.ant:ant-junit:1.10.12' |
Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 38 | } |
| 39 | |
| 40 | build.dependsOn shadowJar |
| 41 | |
| 42 | def testOutputFolder = file("${project(':').buildDir}/integrationTestFiles") |
| 43 | |
| 44 | task copyWpilibJIntegrationTestJarToOutput(type: Copy) { |
| 45 | destinationDir testOutputFolder |
| 46 | dependsOn shadowJar |
| 47 | inputs.file shadowJar.archivePath |
| 48 | from(shadowJar) { |
| 49 | into 'java' |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | build.dependsOn copyWpilibJIntegrationTestJarToOutput |