Skip to content

Commit 981a407

Browse files
committed
U task to download all universalJavaApplicationStub versions
1 parent da84e09 commit 981a407

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

build.gradle

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ plugins {
66
id 'com.gradle.plugin-publish' version '0.12.0'
77
id 'io.codearte.nexus-staging' version '0.21.2'
88
id 'eclipse'
9-
id 'de.undercouch.download' version '4.1.1'
9+
id 'de.undercouch.download' version '5.0.4'
1010
}
1111

1212
repositories {
@@ -224,10 +224,18 @@ nexusStaging {
224224
password = project.findProperty('ossrhPassword') ?: ''
225225
}
226226

227-
task updateUniversalJavaApplicationStub(type: Download) {
228-
group 'Update'
229-
description 'Downloads universalJavaApplicationStub to src/main/resources/mac and overrides the existing one.'
230-
src 'https://raw.githubusercontent.com/fvarrui/universalJavaApplicationStub/master/src/universalJavaApplicationStub'
227+
228+
task updateUniversalJavaApplicationStub(type : Download) {
229+
def version = '20220410.162252'
230+
group 'Update universalJavaApplicationStub'
231+
description 'Downloads and ovewrites compiled and scripted versions of universalJavaApplicationStub to src/main/resources/mac and overrides the existing ones.'
232+
src([
233+
"https://github.com/fvarrui/universalJavaApplicationStub/releases/download/${version}/universalJavaApplicationStub.sh",
234+
"https://github.com/fvarrui/universalJavaApplicationStub/releases/download/${version}/universalJavaApplicationStub.x86_64",
235+
"https://github.com/fvarrui/universalJavaApplicationStub/releases/download/${version}/universalJavaApplicationStub.arm64",
236+
"https://github.com/fvarrui/universalJavaApplicationStub/releases/download/${version}/universalJavaApplicationStub"
237+
])
231238
dest file('src/main/resources/mac')
232-
overwrite true
239+
overwrite true
233240
}
241+

0 commit comments

Comments
 (0)