New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[assemble] Enable zero value in major part of version number #988
Comments
Thank you. Could you also post the full stacktrace found in |
This is not a regression. |
Here is my whole configuration <assemble>
<jlink>
<dmk-app-jlink>
<active>RELEASE</active>
<imageName>${project.artifactId}-${project.version}</imageName>
<executable>${project.artifactId}</executable>
<exported>false</exported>
<mainJar>
<path>${project.build.directory}/${project.artifactId}-${project.version}.jar</path>
</mainJar>
</dmk-app-jlink>
</jlink>
<jpackage>
<dmk-app>
<active>RELEASE</active>
<jlink>dmk-app-jlink</jlink>
<applicationPackage>
<appName>${appName}</appName>
<vendor>MASCI</vendor>
<appVersion>${project.version}</appVersion>
</applicationPackage>
<linux>
<types>deb,rpm</types>
<maintainer>daniel@masci.cz</maintainer>
</linux>
<windows>
<types>msi</types>
<appName>${appName}</appName>
<installDir>${appName}</installDir>
<dirChooser>true</dirChooser>
<console>true</console>
<menu>true</menu>
</windows>
</dmk-app>
</jpackage>
</assemble> In applicationPackage I set the appVersion to 0.1.4 and get the error. |
You can't use |
I don't agree. |
I'm sorry but it's not JReleaser the one that makes the rules, it's the $ jpackage --main-jar ~/tmp/app/target/app-1.0.0.jar --app-version 0.1.4 --input .
Bundler Mac DMG Package skipped because of a configuration problem: The first number in an app-version cannot be zero or negative.
Advice to fix: Set a compatible 'app-version' value. Valid versions are one to three integers separated by dots. |
This is strange.
and jpackage.properties
and the output file is I'm using 17.0.2 jpackage version |
I see. Looks like |
I've got confirmation that leading |
Released in v1.3.0 -> https://github.com/jreleaser/jreleaser/releases/tag/v1.3.0 |
Task List
Steps to Reproduce
Set project version to number with zero major part (0.1.4)
Run assemble goal
Expected Behaviour
Assemble goal is executed without an error.
SEMVER version pattern validation supports zero in major part see here
Actual Behaviour
The goal execution fails with an error.
org.jreleaser.util.JReleaserException: JReleaser has not been properly configured.
The first number in an app-version cannot be zero or negative (0.1.4).
Advice to fix: Set a compatible 'app-version' value. Valid versions are one to three integers separated by dots.
Environment Information
Please paste stacktraces from
[out|build|target]/jreleaser/trace.log
.org.jreleaser.util.JReleaserException: JReleaser has not been properly configured.
The first number in an app-version cannot be zero or negative (0.1.4).
Advice to fix: Set a compatible 'app-version' value. Valid versions are one to three integers separated by dots.
The text was updated successfully, but these errors were encountered: