We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd95ea6 commit a6d6842Copy full SHA for a6d6842
gradle/publish.gradle
@@ -116,12 +116,12 @@ class PublishWithRetryTask extends DefaultTask {
116
117
@TaskAction
118
void exec() {
119
- def isWinHost = System.getProperty("os.name", "unknown").toLowerCase().contains("win")
+ def isLinuxHost = System.getProperty("os.name", "unknown").toLowerCase().contains("linux")
120
def attempt = 1
121
while (attempt <= retryCount) {
122
try {
123
publishTasks.forEach { Task task ->
124
- if (!isWinHost || !task.name.contains("LinuxX64")) {
+ if (!task.name.contains("LinuxX64") || isLinuxHost) {
125
task.publish()
126
}
127
0 commit comments