Reputation: 572
As part of my CI process a symlink directory is made with an arbitrary name like "module" that will always point to the correct build directory. Unfortunately the java plugin seems to use this when it decides to name the resulting JAR file module.jar
.
How do I tell gradle to use some other properties in order to determine the jar name?
Upvotes: 1
Views: 785
Reputation: 38619
You have several options to achieve this, here are some of them:
rootProject.name
in settings.gradle
to make it independent of the directory name (always a good idea)archivesBaseName
on the project to influence the base name of all archive tasksbaseName
on the jar
task to whatever you likearchiveName
on the jar
task to whatever you likeUpvotes: 3