blob: 06d891a55f43aa6bb3e16d7d4fcd49c3f7634a00 [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 {
James Kuszmaulcf324122023-01-14 14:07:17 -080019 maven {
20 url = 'https://frcmaven.wpi.edu/artifactory/ex-mvn'
21 }
Brian Silverman8fce7482020-01-05 13:18:21 -080022}
23
24dependencies {
25 implementation project(':wpilibj')
Austin Schuh1e69f942020-11-14 15:06:14 -080026 implementation project(':wpimath')
Brian Silverman8fce7482020-01-05 13:18:21 -080027 implementation project(':hal')
28 implementation project(':wpiutil')
James Kuszmaulcf324122023-01-14 14:07:17 -080029 implementation project(':wpinet')
Brian Silverman8fce7482020-01-05 13:18:21 -080030 implementation project(':ntcore')
31 implementation project(':cscore')
32 implementation project(':cameraserver')
Austin Schuh75263e32022-02-22 18:05:32 -080033 implementation 'junit:junit:4.13.2'
Brian Silverman8fce7482020-01-05 13:18:21 -080034 testImplementation 'org.hamcrest:hamcrest-all:1.3'
Austin Schuh75263e32022-02-22 18:05:32 -080035 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 Silverman8fce7482020-01-05 13:18:21 -080038}
39
40build.dependsOn shadowJar
41
42def testOutputFolder = file("${project(':').buildDir}/integrationTestFiles")
43
44task copyWpilibJIntegrationTestJarToOutput(type: Copy) {
45 destinationDir testOutputFolder
46 dependsOn shadowJar
47 inputs.file shadowJar.archivePath
48 from(shadowJar) {
49 into 'java'
50 }
51}
52
53build.dependsOn copyWpilibJIntegrationTestJarToOutput