John Park | 7eb9042 | 2018-01-27 12:04:57 -0800 | [diff] [blame^] | 1 | plugins { |
| 2 | id 'java' |
| 3 | id 'application' |
| 4 | id 'com.github.johnrengelman.shadow' version '1.2.3' |
| 5 | } |
| 6 | |
| 7 | repositories { |
| 8 | mavenCentral() |
| 9 | } |
| 10 | |
| 11 | mainClassName = 'edu.wpi.first.wpilibj.test.AntJunitLanucher' |
| 12 | |
| 13 | dependencies { |
| 14 | compile project(':wpilibj') |
| 15 | compile files(project(':wpilibj').sourceSets.test.output) |
| 16 | compile 'edu.wpi.first.wpiutil:wpiutil-java:3.+' |
| 17 | compile 'edu.wpi.first.ntcore:ntcore-java:4.+' |
| 18 | compile 'org.opencv:opencv-java:3.2.0' |
| 19 | compile 'edu.wpi.first.cscore:cscore-java:1.+' |
| 20 | compile 'junit:junit:4.11' |
| 21 | compile 'com.googlecode.junit-toolbox:junit-toolbox:2.0' |
| 22 | compile 'org.apache.ant:ant:1.9.4' |
| 23 | compile 'org.apache.ant:ant-junit:1.9.4' |
| 24 | } |
| 25 | |
| 26 | build.dependsOn shadowJar |
| 27 | |
| 28 | def testOutputFolder = file("${project(':').buildDir}/integrationTestFiles") |
| 29 | |
| 30 | task copyWpilibJIntegrationTestJarToOutput(type: Copy) { |
| 31 | destinationDir testOutputFolder |
| 32 | dependsOn shadowJar |
| 33 | inputs.file shadowJar |
| 34 | from (shadowJar) { |
| 35 | into 'java' |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | build.dependsOn copyWpilibJIntegrationTestJarToOutput |