Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to publish a jar to flatDir with Gradle without "-unspecified" in the name?

Tags:

gradle

I have a gradle project that publishes a jar file to a flatDir repository. The publishing works fine, but the uploadArchives task seems to append "-unspecified" to the jar's filename when uploading it. The jar's filename in the build/libs output folder does not have this postfix.

How can I configure the uploadArchives task to skip the appending of "-unspecified" ?

like image 611
JE42 Avatar asked Jan 01 '26 12:01

JE42


1 Answers

This likely happens because you didn't set project.version. Either set it to a version number, or set it to null.

like image 59
Peter Niederwieser Avatar answered Jan 04 '26 14:01

Peter Niederwieser



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!