Skip to content

Commit

Permalink
Tag and version may be diffrent
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmiray committed Apr 11, 2021
1 parent b3708ba commit b302fef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion get_jreleaser.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ public static void main(String... args) throws Exception {
}

// 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()) {
Expand Down

1 comment on commit b302fef

@sormuras
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, the leading v ;-)

Please sign in to comment.