[GRADLE-1811] It is not possible to generate the ivy.xml file without publishing the project Created: 26/Sep/11  Updated: 17/Jan/13  Resolved: 20/Nov/12

Status: Resolved
Project: Gradle
Affects Version/s: None
Fix Version/s: 1.4-rc-1

Type: Improvement
Reporter: Szczepan Faber Assignee: Unassigned
Resolution: Fixed Votes: 0


 Description   

We should have an explicit task for ivy.xml generation. Also we should provide some hooks to manipulate the generated ivy.xml (possibly a separate ticket). I found this use case at the client's.

Current workaround.

Create an instance of Upload task but don't configure any repositories:

task generateIvyXml(type: Upload) {
  descriptorDestination = file('ivy.xml')
  uploadDescriptor = true
  configuration = configurations.myJars
}

Generated at Wed Jun 30 12:04:59 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.