Re: [gradle-user] Create multiple jars from same sourceset

2011-06-23 Thread Mark Davidson
BUILD SUCCESSFUL :-) Thanks Luke. On 23 June 2011 03:17, Luke Daley luke.da...@gradleware.com wrote: repositories['mavenInstaller'].with

[gradle-user] Generating artifacts and installing in a maven repo

2011-06-23 Thread Hugo Visser
Hi, I'm converting my ant Flex build to Gradle by wrapping the existing ant tasks, but I have some problems generator / registering an build artifact (swf) that can be installed in a maven repo. My goal would be to: clean/compile/test the project and create one or more artifacts (swf, zip etc).

[gradle-user] Multiple repositories and brocken dependencies

2011-06-23 Thread Grzegorz Gigon
Something that came out recently on our project (where we started using Gradle as our build/release tool). We are using two repositories for project dependencies. One for internal stuff and other for all the third party libraries. We defined those repositories in order: Meven Central Repo

[gradle-user] Re: Aliasing commonly repeated tasks combination

2011-06-23 Thread Philippe Lhoste
On 22/06/2011 14:49, evgenyg wrote: What do you think of the following feature suggestion to Gradle: being able to easily alias commonly repeated commands combinations. For example, I run *gradle build deploy -PnoGroovy -x test -x about* very frequently (lightweight build deploy) and *gradle

[gradle-user] Passing properties along to a script for tests

2011-06-23 Thread James Carr
Hi All, I want to parameterize our tests to run against different environments based on properties passed from the commandline. I tried doing the following: -Denvironment=dev But I can't seem to access this within a test via the System.getProperties() map. Any ideas? Thanks, James

Re: [gradle-user] Re: Failing a build

2011-06-23 Thread M A
Thanks, Peter. On Jun 22, 2011 10:29 PM, Peter Niederwieser pnied...@gmail.com wrote: Merlyn Albery-Speyer wrote: What's the best way to fail a build? For now, throwing a GradleException is fine. We plan to add some method(s) for this. Merlyn Albery-Speyer wrote: Both result in long

Re: [gradle-user] Passing properties along to a script for tests

2011-06-23 Thread Ken Sipe
James, I'm not sure why you would have a problem with the sys props... but I thought you might want to check out mr haki's blog on using the ConfigSlurper. http://mrhaki.blogspot.com/2009/11/gradle-goodness-using-properties-for.html Ken Sipe | kens...@gmail.com | blog:

Re: [gradle-user] Where's the time going?

2011-06-23 Thread Robert Fischer
Wouldn't that closure have to be resolved in order to do UP-TO-DATE checking on that task? So it's before the execution of the task, at least. It will be as soon as someone paid any attention to the input to the jar task. ~~ Robert. On Wed, Jun 22, 2011 at 4:51 PM, Szczepan Faber

Re: [gradle-user] Where's the time going?

2011-06-23 Thread M A
The time is taken even when running the tasks task. On Jun 23, 2011 8:06 AM, Robert Fischer robert.fisc...@smokejumperit.com wrote: Wouldn't that closure have to be resolved in order to do UP-TO-DATE checking on that task? So it's before the execution of the task, at least. It will be as soon

[gradle-user] Gradle and the ANTLR plugin

2011-06-23 Thread Russel Winder
Using Gradle and ANTLR 2.7.7 (*) I am finding that even when the antlr phase fails the classes phase reports success. I can sort of see why -- the antlr phase has not contributed any Java files so there is nothing to compile from there and everything else compiles. However this strikes me as not

Re: [gradle-user] why doesn't gradle project.afterEvaluate execute in my unit test?

2011-06-23 Thread phil swenson
Thanks Luke. Is there an equivalent to trigger the project.gradle.taskGraph.whenReady closure from a unit test? This isn't kicking off for me either thanks phil On Tue, Jun 21, 2011 at 5:59 PM, Luke Daley luke.da...@gradleware.com wrote: On 22/06/2011, at 9:23 AM, phil swenson wrote:

Re: [gradle-user] Passing properties along to a script for tests

2011-06-23 Thread Adam Murdoch
On 24/06/2011, at 12:04 AM, James Carr wrote: Hi All, I want to parameterize our tests to run against different environments based on properties passed from the commandline. I tried doing the following: -Denvironment=dev But I can't seem to access this within a test via the

Re: [gradle-user] Passing properties along to a script for tests

2011-06-23 Thread James Carr
That was exactly what we needed... thanks a bunch! On Thu, Jun 23, 2011 at 2:22 PM, Adam Murdoch adam.murd...@gradleware.com wrote: On 24/06/2011, at 12:04 AM, James Carr wrote: Hi All, I want to parameterize our tests to run against different environments based on properties passed from

[gradle-user] Re: Aliasing commonly repeated tasks combination

2011-06-23 Thread evgenyg
Yes, I have bunch of batch scripts already, optimizing most of commands launched daily, like m for mvn -e clean install and gr for gradle -S --no-color. But to keep adding those small scripts for each project ever developed with Gradle means polluting my command-line space and soon I start

Re: [gradle-user] taskGraph.whenReady not firing in my unit test

2011-06-23 Thread Luke Daley
On 23/06/2011, at 5:52 AM, phil swenson wrote: yesterday I was asking about project.afterEvaluate not firing in my unit test. The answer was calling project.evaluate() directly. Is there something to trigger this? project.gradle.taskGraph.whenReady{ setupArchivesTask(project,

Re: [gradle-user] Aliasing commonly repeated tasks combination

2011-06-23 Thread Adam Murdoch
On 22/06/2011, at 10:49 PM, evgenyg wrote: Hi, What do you think of the following feature suggestion to Gradle: being able to easily alias commonly repeated commands combinations. For example, I run *gradle build deploy -PnoGroovy -x test -x about* very frequently (lightweight build

[gradle-user] Using Git as a local artifact repository

2011-06-23 Thread Mike Mills
Does anyone have any information on how to use Git as a local ivy repository or cache? I would like to be able to use Git as a local repository, and if the artefact is not there, then go to the next resolver as normal. However, I would like it so that if an artefact is retrieved elsewhere that