From b940c944231977d7f1707542808ae03c4949458d Mon Sep 17 00:00:00 2001 From: Thad House Date: Fri, 30 Aug 2019 05:51:00 -0700 Subject: [PATCH] Remove publishing of all classifier It's not helpful anymore, breaks for the C++ one, and is too gigantic. --- combiner/allwpilib/combine.gradle | 36 ------------------------------ combiner/thirdparty/combine.gradle | 36 ------------------------------ 2 files changed, 72 deletions(-) diff --git a/combiner/allwpilib/combine.gradle b/combiner/allwpilib/combine.gradle index 5f7cd8e..70ba6fd 100644 --- a/combiner/allwpilib/combine.gradle +++ b/combiner/allwpilib/combine.gradle @@ -92,42 +92,6 @@ for (File it : allFiles) { } -task beforePublish() { - -} - -groups.each { key, value-> - value.each { key2, value2-> - def allClassifiers = [] - def isJar = false - value2.each { - if (it.get(1)) { - allClassifiers << it.get(2) - if (it.get(2).toString().endsWith('jar')) { - isJar = true - } - } - } - if (!allClassifiers.empty) { - def createdTask = project.tasks.create(key + key2 + 'all', isJar ? Jar : Zip) { - allClassifiers.each { - classifier = 'all' - baseName = key + key2 - destinationDir = allOutput - duplicatesStrategy = 'exclude' - - allClassifiers.each { - from project.zipTree(it) - } - } - } - beforePublish.dependsOn createdTask - value2 << new Tuple('all', false, createdTask) - - } - } -} - publishing { publications { groups.each { key, value-> diff --git a/combiner/thirdparty/combine.gradle b/combiner/thirdparty/combine.gradle index 23fd5ea..00255d5 100644 --- a/combiner/thirdparty/combine.gradle +++ b/combiner/thirdparty/combine.gradle @@ -107,42 +107,6 @@ for (File it : allFiles) { } -task beforePublish() { - -} - -groups.each { key, value-> - value.each { key2, value2-> - def allClassifiers = [] - def isJar = false - value2.each { - if (it.get(1)) { - allClassifiers << it.get(2) - if (it.get(2).toString().endsWith('jar')) { - isJar = true - } - } - } - if (!allClassifiers.empty) { - def createdTask = project.tasks.create(key + key2 + 'all', isJar ? Jar : Zip) { - allClassifiers.each { - classifier = 'all' - baseName = key + key2 - destinationDir = allOutput - duplicatesStrategy = 'exclude' - - allClassifiers.each { - from project.zipTree(it) - } - } - } - beforePublish.dependsOn createdTask - value2 << new Tuple('all', false, createdTask) - - } - } -} - publishing { publications { groups.each { key, value->