From b302fefa8eaae8253a2afa5bfa6627f942740db2 Mon Sep 17 00:00:00 2001 From: Andres Almiray Date: Sun, 11 Apr 2021 15:46:41 +0200 Subject: [PATCH] Tag and version may be diffrent --- get_jreleaser.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/get_jreleaser.java b/get_jreleaser.java index eb19e5f..3dd70eb 100644 --- a/get_jreleaser.java +++ b/get_jreleaser.java @@ -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()) {