blob: b79337aff8ce36e722f0be11bd2b0aac9c5c1746 [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
James Kuszmaulb13e13f2023-11-22 20:44:04 -080014application {
15 mainClass = 'edu.wpi.first.wpilibj.test.AntJunitLauncher'
16}
Brian Silverman8fce7482020-01-05 13:18:21 -080017
18apply plugin: 'com.github.johnrengelman.shadow'
19
20repositories {
James Kuszmaulcf324122023-01-14 14:07:17 -080021 maven {
22 url = 'https://frcmaven.wpi.edu/artifactory/ex-mvn'
23 }
Brian Silverman8fce7482020-01-05 13:18:21 -080024}
25
26dependencies {
27 implementation project(':wpilibj')
Austin Schuh1e69f942020-11-14 15:06:14 -080028 implementation project(':wpimath')
Brian Silverman8fce7482020-01-05 13:18:21 -080029 implementation project(':hal')
30 implementation project(':wpiutil')
James Kuszmaulcf324122023-01-14 14:07:17 -080031 implementation project(':wpinet')
Brian Silverman8fce7482020-01-05 13:18:21 -080032 implementation project(':ntcore')
33 implementation project(':cscore')
34 implementation project(':cameraserver')
Austin Schuh75263e32022-02-22 18:05:32 -080035 implementation 'junit:junit:4.13.2'
Brian Silverman8fce7482020-01-05 13:18:21 -080036 testImplementation 'org.hamcrest:hamcrest-all:1.3'
Austin Schuh75263e32022-02-22 18:05:32 -080037 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 Silverman8fce7482020-01-05 13:18:21 -080040}
41
42build.dependsOn shadowJar
43
44def testOutputFolder = file("${project(':').buildDir}/integrationTestFiles")
45
46task copyWpilibJIntegrationTestJarToOutput(type: Copy) {
47 destinationDir testOutputFolder
48 dependsOn shadowJar
James Kuszmaulb13e13f2023-11-22 20:44:04 -080049 inputs.file shadowJar.archiveFile
Brian Silverman8fce7482020-01-05 13:18:21 -080050 from(shadowJar) {
51 into 'java'
52 }
53}
54
55build.dependsOn copyWpilibJIntegrationTestJarToOutput