Brian Silverman | 1a67511 | 2016-02-20 20:42:49 -0500 | [diff] [blame] | 1 | apply plugin: 'java' |
| 2 | apply plugin: 'maven-publish' |
| 3 | |
| 4 | publishing { |
| 5 | publications { |
| 6 | simulation(MavenPublication) { |
| 7 | artifact zip |
| 8 | groupId 'edu.wpi.first.wpilib.simulation' |
| 9 | artifactId 'simulation' |
| 10 | version '1.0.0' |
| 11 | } |
| 12 | } |
| 13 | |
| 14 | setupWpilibRepo(it) |
| 15 | } |
| 16 | |
| 17 | task copy_resources(type: Copy) { |
| 18 | description = 'copy gz_msgs and install_resources to make simulation zip' |
| 19 | group = 'WPILib Simulation' |
| 20 | into ('gz_msgs') { |
| 21 | from 'gz_msgs' |
| 22 | } |
| 23 | into "$simulationInstallDir" |
| 24 | from 'install_resources' |
| 25 | } |
| 26 | |
| 27 | task zip(type: Zip, dependsOn: [copy_resources, |
| 28 | ':wpilibc:wpilibcSimCopy', |
| 29 | ':simulation:SimDS:copyJars', |
| 30 | ':wpilibj:copyJars']) { |
| 31 | description = 'zip of all the resources for simulation' |
| 32 | group = 'WPILib Simulation' |
| 33 | baseName = 'simulation-trusty' |
| 34 | from "$simulationInstallDir" |
| 35 | } |