Hi all, I’ve a huge problem which I’m afraid I’m not able to resolve. I’m quite new to gradle and have problem with exporting .zip file to artifactory. When I type ‘gradle artifactoryPublish’ everything goes fine, zip file is deployed to artifactory but it has groupId as null and version as ‘unspecified’ and path to zip is a little bit strange and finally zip name is: null-unspecified.zip what is more than unacceptable. How can I define these values? Let me show my script:
I assume buildPackage is a Zip task? If so, does it have a baseName set up? Something like:
buildPackage {
baseName = project.name
}
As far as controlling the module name (app-build) that is keyed off of the name of the directory. To set it to something else, I think you would have to use a settings.gradle file. Your settings.gradle would look something like this:
What name does it produce for the zip file in build/distributions? Is it also null-1.0.0.zip? If so, then it has something to do with the naming of the file in the zip task (see my last reply). If not, then I’m not sure - might be an issue with the artifactory plugin (which I’m not intimately familiar with).