A couple of months ago, Peter suggested varying the module name or classifier as a substitute for Ivy branching. I’ve actually spent a lot of time eliminating our need for branches, but now I’m up against a use case, and the problem is, I’m not sure how to make this work in Gradle. My artifact currently gets published as follows:
I’d like to change the project directory name to something like “project-branch”, so it would publish as:
I can vary the group and version easily with the respective Project properties, but “name” is read-only. Changing “archivesBaseName” as suggested here allows me to rename the JAR, but the directory is still “project”. I’ve tried using the “artifacts” property to configure it, but can’t seem to get the syntax correct. The “classifier” property seems to be ignored by uploadArchives.
Is there some definitive recommendation for customizing the different parts of the directory/name of the archive?