Somehow I doubt this is working like intended. I called “tasks” task on gradle 1.11 source to find the task to build a distribution package. Here the outcome: https://gist.github.com/Vampire/3a23ae85cd2ccf7d2840#file-gradlew-tasks
Besides the deprecated warnings during execution, I thought that packageBuild might maybe do what i want and I wanted to get more information about the task, so I wanted to use the “help --task” command introduced with 1.10, so I called “help --task pB” But the output was not like expected. First it gave the help for “verifyIsProductionBuildEnvironment” instead of “packageBuild”, then something was executed, I’m not sure what. Here the output: https://gist.github.com/Vampire/3a23ae85cd2ccf7d2840#file-gradlew-help-task-pb
PS: I first included the outputs in <code> tags inline here, but at least the second section was scrambled in the end, so I created a Gist. Maybe you want to investigate on this too.