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