I ran into a curious naming problem when performing the uploadArchive task.
When the assemble task creates a tar (zip, war) artefact, I’m assigning the desired artifact name; i.e. the script says “archiveName = ‘servermethods.tgz’”. This works as expected. But then I used the uploadArchives task to deploy the built artifacts into a flat repository. This resultet in a renaming of the produced artifact; the artifact was named after the project name and got the version into it’s name. I came about reading the chapter ‘Archive naming’ of Gradle User Guide. So I declared the baseName in the tar (war / zip) tasks and said: “achiveName=baseName”. This did somewhat the job, but resultet into something like: ‘jadice.war-3.1.0.war’ instead of what I wanted: ‘jadice.war’ (which is just the war name).
What do I have to do to get an uploadedArchive with no version info, no doubling of file extensions?