mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
To publish the simulation zip, run ./gradlew publish -PmakeSim Targeting Ubuntu 14.04 and 15.10 for now, with 14.04 being the currently best supported. Two scripts have been drafted for installing, for 14.04 and 15.10 It currently publishes to ~/releases/maven/development/simulation There is a known bug that gz_msgs for 15.10 must be built using protobuf 2.6, which is not the default on 14.04. Change-Id: I6cccd601671553d30fd05bbbc79c2b7dc1efbf1d
36 lines
865 B
Groovy
36 lines
865 B
Groovy
apply plugin: 'java'
|
|
apply plugin: 'maven-publish'
|
|
|
|
publishing {
|
|
publications {
|
|
simulation(MavenPublication) {
|
|
artifact zip
|
|
groupId 'simulation'
|
|
artifactId 'simulation'
|
|
version '1.0.0'
|
|
}
|
|
}
|
|
|
|
setupWpilibRepo(it)
|
|
}
|
|
|
|
task copy_resources(type: Copy) {
|
|
description = 'copy gz_msgs and install_resources to make simulation zip'
|
|
group = 'WPILib Simulation'
|
|
into ('gz_msgs') {
|
|
from 'gz_msgs'
|
|
}
|
|
into "$simulationInstallDir"
|
|
from 'install_resources'
|
|
}
|
|
|
|
task zip(type: Zip, dependsOn: [copy_resources,
|
|
':wpilibc:wpilibcSimCopy',
|
|
':simulation:SimDS:copyJars',
|
|
':wpilibj:copyJars']) {
|
|
description = 'zip of all the resources for simulation'
|
|
group = 'WPILib Simulation'
|
|
baseName = 'simulation-trusty'
|
|
from "$simulationInstallDir"
|
|
}
|