diff --git a/publish.gradle b/publish.gradle index fda3296f43..82e6353595 100644 --- a/publish.gradle +++ b/publish.gradle @@ -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