Hi, I’ve just upgraded from gradle-1.0-milesone-3 to gradle-1-0 (great performance improvement by the way!). In my upload tasks (to an Ivy repository) I was setting the file permissions as follows:
//upload jar to Ivy repository
uploadArchives {
repositories {
add project.repositories.test_repo { publishPermissions = '0777' }
}
}
When I run this against gradle-1.0 the publishPermissions property has been deprecated. Is there an alternative way to do this in 1.0?
In Gradle 1.0, we have started to move away from exposing Ivy classes in our API. This will make it easier for us to continue to improve dependency management in the future.
The value of ‘project.repositories.test_repo’ is no longer an Ivy DependencyResolver instance, and so does not have a ‘publishPermissions’ property that you can set.
Your best bet is probably to set this property when creating the repository:
What does your ‘repositories’ block look like, where ‘test_repo’ is defined? * Do you need to specify different permissions for different publish configurations?