Skip to content

Commit

Permalink
chore: fix configuration cache error for Tar/Zip configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Hiroshi Miura <[email protected]>
  • Loading branch information
miurahr committed Jan 16, 2025
1 parent 3599f58 commit f93093f
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -480,9 +480,18 @@ makeWinTask(name: 'winJRE64', suffix: 'Windows_64', jrePath: windowsJRE, arch: '
makeWinTask(name: 'winJRE', suffix: 'Windows', jrePath: windowsJRE32, parentTask: 'win')

// Disable .tar distributions for everyone but Linux
tasks.findAll { it.name =~ /[dD]istTar$/ && !it.name.contains('linux') }.each { it.enabled = false }
tasks.withType(Tar).configureEach {
if (!name.contains('linux')) {
enabled = false
}
}

// Disable .zip distributions for Linux
tasks.findAll { it.name =~ /[dD]istZip$/ && it.name.contains('linux') }.each { it.enabled = false }
tasks.withType(Zip).configureEach {
if (name.contains('linux')) {
enabled = false
}
}

def provided = findProperty('repoRevision') ?: ''
def gitArchival = loadProperties(file('.git-archival.properties')).getProperty('node')
Expand Down

0 comments on commit f93093f

Please sign in to comment.