blob: c0d1ff07656652b679446d7b1439cf66d1fa6929 [file] [log] [blame]
Brian Silverman1a675112016-02-20 20:42:49 -05001apply plugin: 'java'
2apply plugin: 'maven-publish'
3
4publishing {
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
17task 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
27task 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}