fix: Project version must be set before invoking version()

This commit is contained in:
Andres Almiray 2025-01-21 19:47:33 +01:00
parent 926eb906f4
commit 6e0b08cbd9
No known key found for this signature in database
GPG key ID: CCC55C5167419ADB

View file

@ -125,7 +125,6 @@ public abstract class AbstractJReleaserOperation<S extends AbstractJReleaserOper
List<String> args = new ArrayList<>();
if (project_ != null) {
System.setProperty("JRELEASER_PROJECT_VERSION", project_.version().toString());
args.add(javaTool());
args.add("-cp");
args.add(String.format("%s:%s:%s:%s", new File(project_.libTestDirectory(), "*"),