mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
* Moved version generation to the WPILib versioning plugin. This also moves ntcore and wpilib to the latest available version. * Fixed description string. * Gave full path for ignored files.
37 lines
935 B
Groovy
37 lines
935 B
Groovy
apply plugin: 'java'
|
|
apply plugin: 'maven-publish'
|
|
|
|
publishing {
|
|
publications {
|
|
simulation(MavenPublication) {
|
|
artifact zip
|
|
groupId 'edu.wpi.first.wpilib.simulation'
|
|
artifactId 'simulation'
|
|
version WPILibVersion.version
|
|
}
|
|
}
|
|
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'
|
|
duplicatesStrategy = 'exclude'
|
|
|
|
from "$simulationInstallDir"
|
|
}
|