Use namespace when resolving JReleaser version. Fixes #4"

This commit is contained in:
Andres Almiray 2021-08-19 20:44:52 +02:00
parent ff5713ccff
commit 082d8e6441
No known key found for this signature in database
GPG key ID: CCC55C5167419ADB

View file

@ -29,7 +29,7 @@ class get_jreleaser {
// resolve latest to a tagged release
if ("latest".equalsIgnoreCase(version)) {
var url = "https://jreleaser.org/releases/latest/download/VERSION";
var file = Path.of("VERSION");
var file = Path.of("JRELEASER_VERSION");
try (var stream = new URL(url).openStream()) {
System.out.printf("✅ Located version marker%n");