Tag and version may be diffrent
This commit is contained in:
parent
b3708ba54c
commit
b302fefa8e
1 changed files with 2 additions and 1 deletions
|
@ -48,7 +48,8 @@ class get_jreleaser {
|
|||
}
|
||||
|
||||
// setup the actual download
|
||||
var url = "https://github.com/jreleaser/jreleaser/releases/download/" + version + "/jreleaser-tool-provider-" + version + ".jar";
|
||||
var tag = !"early-access".equals(version) ? "v" + version : version;
|
||||
var url = "https://github.com/jreleaser/jreleaser/releases/download/" + tag + "/jreleaser-tool-provider-" + version + ".jar";
|
||||
var file = Path.of("jreleaser-cli.jar");
|
||||
|
||||
try (var stream = new URL(url).openStream()) {
|
||||
|
|
Loading…
Reference in a new issue