Gradle Task for publishing Gradle distributions


(Mohan Kornipati) #1

We are trying to build Gradle code forking from https://github.com/gradle/gradle locally with a fix and able to build successfully and planning to publish them to our local repository but when we tried to run tasks - “build uploadArchives -PfinalRelease=true” and also “publishLocalArchives” and we can see it is building distributions

gradle-2.5-all.zip
gradle-2.5-bin.zip
gradle-2.5-src.zip

but publishing only

gradle-base-services/
gradle-base-services-groovy/
gradle-core/
gradle-messaging/
gradle-resources/
gradle-tooling-api/
gradle-wrapper/

but not the distributions
gradle-2.5-all.zip
gradle-2.5-bin.zip
gradle-2.5-src.zip

is there any other gradle tasks, we need to run to publish the distributions too?


(Mark Vieira) #2

Distributions aren’t configured to be published to an artifact repository. You’ll need to modify the build script slightly to get this to work. First you’ll need to add the :distributions project to the list here.

You’ll then want to add publishRuntime allZip, binZip, srcZip to the artifacts { } block here.


(Mohan Kornipati) #3

Thanks @mark_vieira. That worked!:slight_smile: