Adds an all artifact to the published libraries (#15)

Better then the old desktop zips because it will include all artifacts
built, not just specifically the desktop ones. Also, the individual
artifacts are published as well so users can decide which artifacts they
specifically want, and can help decrease download sizes. The cpp plugin
will continue using the individual artifacts.
This commit is contained in:
Thad House
2017-08-07 17:44:07 -07:00
committed by Peter Johnson
parent 7e011bda6f
commit f0cc5d9ca8

View File

@@ -166,6 +166,25 @@ model {
}
})
def allCppTask
if (!project.hasProperty('jenkinsBuild')) {
allCppTask = project.tasks.create("wpiutilAllZip", Zip) {
description = 'Creates a zip with all Cpp artifacts'
classifier = 'all'
baseName = 'zipcppwpiutilwpiutil'
destinationDir = outputsFolder
duplicatesStrategy = 'exclude'
wpiutilTaskList.each {
it.outputs.files.each {
from project.zipTree(it)
}
dependsOn it
}
}
project.build.dependsOn allCppTask
}
publications {
cpp(MavenPublication) {
wpiutilTaskList.each {
@@ -174,6 +193,10 @@ model {
artifact cppHeadersZip
artifact cppSourcesZip
if (!project.hasProperty('jenkinsBuild')) {
artifact allCppTask
}
artifactId = "${baseArtifactId}-cpp"
groupId artifactGroupId
version pubVersion