blob: d2daedaec1e507a22397d55dfe467b1a0aca4af4 [file] [log] [blame]
Brian Silverman8fce7482020-01-05 13:18:21 -08001plugins {
2 id 'java'
3 id 'application'
4}
5
6ext {
7 useJava = true
8 useCpp = false
9 skipDev = true
10}
11
12apply from: "${rootDir}/shared/opencv.gradle"
13
Austin Schuh812d0d12021-11-04 20:16:48 -070014mainClassName = 'edu.wpi.first.wpilibj.test.AntJunitLauncher'
Brian Silverman8fce7482020-01-05 13:18:21 -080015
16apply plugin: 'com.github.johnrengelman.shadow'
17
18repositories {
19 mavenCentral()
20}
21
22dependencies {
23 implementation project(':wpilibj')
Austin Schuh1e69f942020-11-14 15:06:14 -080024 implementation project(':wpimath')
Brian Silverman8fce7482020-01-05 13:18:21 -080025 implementation project(':hal')
26 implementation project(':wpiutil')
27 implementation project(':ntcore')
28 implementation project(':cscore')
29 implementation project(':cameraserver')
Austin Schuh75263e32022-02-22 18:05:32 -080030 implementation 'junit:junit:4.13.2'
Brian Silverman8fce7482020-01-05 13:18:21 -080031 testImplementation 'org.hamcrest:hamcrest-all:1.3'
Austin Schuh75263e32022-02-22 18:05:32 -080032 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 Silverman8fce7482020-01-05 13:18:21 -080035}
36
37build.dependsOn shadowJar
38
39def testOutputFolder = file("${project(':').buildDir}/integrationTestFiles")
40
41task copyWpilibJIntegrationTestJarToOutput(type: Copy) {
42 destinationDir testOutputFolder
43 dependsOn shadowJar
44 inputs.file shadowJar.archivePath
45 from(shadowJar) {
46 into 'java'
47 }
48}
49
50build.dependsOn copyWpilibJIntegrationTestJarToOutput