mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-04 03:11:43 +00:00
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:
committed by
Peter Johnson
parent
7e011bda6f
commit
f0cc5d9ca8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user