Skip to content

Commit

Permalink
Remove unused generateAll property
Browse files Browse the repository at this point in the history
  • Loading branch information
Gold856 committed Oct 13, 2024
1 parent 93b0c3a commit a062ae0
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions combiner/allwpilib/combine.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def pubVersion = file(fileFinder.getFileNames(new File(projectDir, 'products').a

println pubVersion

String regex = "([_M_]*)_GROUP_([^\\.]+)_ID_([^\\.]+)_CLS([^\\.]*)."
String regex = "_GROUP_([^\\.]+)_ID_([^\\.]+)_CLS([^\\.]*)."
Pattern pattern = Pattern.compile(regex, Pattern.MULTILINE);

def groups = [:]
Expand All @@ -62,11 +62,9 @@ for (File it : allFiles) {
continue
}

def generateAll = matcher.group(1) == '_M_'

def groupId = matcher.group(2)
def artifactId = matcher.group(3)
def classifier = matcher.group(4)
def groupId = matcher.group(1)
def artifactId = matcher.group(2)
def classifier = matcher.group(3)

if (!classifier.empty) {
classifier = classifier.substring(1)
Expand All @@ -85,7 +83,7 @@ for (File it : allFiles) {
group[artifactId] = id
}

id << new Tuple(classifier, generateAll, it)
id << new Tuple(classifier, it)

}

Expand All @@ -95,7 +93,7 @@ publishing {
value.each { key2, value2->
"${key}${key2}"(MavenPublication) {
value2.each { t->
artifact (t.get(2)) {
artifact (t.get(1)) {
if (!t.get(0).empty) {
classifier = t.get(0)
}
Expand Down

0 comments on commit a062ae0

Please sign in to comment.