Looks like this is working:
task ghUpload(dependsOn:[configurations.archives.allArtifacts]) {
...
}Is this a bug? I'd expect "configurations.archives" to be functionally equivalent to "configuration.archives.allArtifacts". ~~ Robert. On Mon, Apr 23, 2012 at 11:38 AM, Robert Fischer <[email protected]> wrote: > I'm defining the task like this: > > task ghUpload(dependsOn:[configurations.archives]) { > ... > } > > But that isn't forcing the jar to be built. (In this case, I've got > the Java plugin installed.) Is there a trick I need to force that? > > ~~ Robert. > > > On Sun, Apr 22, 2012 at 8:28 PM, Peter Niederwieser <[email protected]> > wrote: >> They are configured at configuration time (e.g. by the `java` plugin). >> Plugins should use the usual mechanisms (`artifacts.all { ... }`, convention >> mapping, `doFirst {}`, etc.) to cope with timing issues. >> >> -- >> Peter Niederwieser >> Principal Engineer, Gradleware >> http://gradleware.com >> Creator, Spock Framework >> http://spockframework.org >> Twitter: @pniederw >> >> -- >> View this message in context: >> http://gradle.1045684.n5.nabble.com/Get-at-Artifacts-tp5658131p5658162.html >> Sent from the gradle-user mailing list archive at Nabble.com. >> >> --------------------------------------------------------------------- >> To unsubscribe from this list, please visit: >> >> http://xircles.codehaus.org/manage_email >> >> --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
