Re: [gradle-user] zip as an action?

2011-04-13 Thread Ken Sipe
Eitan... nice... good to hear... btw... this should work as well (which is closer to your original intent, although I still like the rule based example) ['branch', 'stage', 'production', 'released'].each { String env -> task "package${env}"(type: Zip) {

Re: [gradle-user] zip as an action?

2011-04-13 Thread Ken Sipe
here is the latest update (I'm assume groovy help is useful here... checkout "def env...") tasks.addRule("Pattern: package: package environments") { String taskName -> if (taskName.startsWith("package")) { def env = taskName[7..-1] task "${

Re: [gradle-user] zip as an action?

2011-04-13 Thread Eitan Suez
Hi Ken, thanks for the detailed reply. it's funny but this is essentially the solution i came to, and coded (perhaps a couple of hours after posting my question). i ended up using a task rule. and it's a better solution because now the outputs of these tasks can be included in the archive

Re: [gradle-user] zip as an action?

2011-04-13 Thread Ken Sipe
Eitan, The one correct to make after closer eval is you would want to strip the "package" of the ${env} otherwise not a bad approach. Ken Sipe | kens...@gmail.com | blog: http://kensipe.blogspot.com On Apr 13, 2011, at 12:13 PM, Eitan Suez wrote: > [gmail crashed on my first send, sorry if

Re: [gradle-user] zip as an action?

2011-04-13 Thread Ken Sipe
Eitan, I tested an environment close to what you are looking for... I think my changes are obvious, but if you need clarification please ask. I should also say that there are probably a couple of ways to solve this... this is the one that came to mind to me. tasks.addRule("Pattern: package: p

Re: [gradle-user] Searching for Gradle information

2011-04-13 Thread Glen Stampoultzis
realised even :-) On 14 April 2011 15:30, Glen Stampoultzis wrote: > Sorry just released that latest points to the snapshot release so I guess > that idea wouldn't make sense. > > > On 14 April 2011 15:27, Glen Stampoultzis wrote: > >> Good news. I guess it will take a while for Google to catc

Re: [gradle-user] Searching for Gradle information

2011-04-13 Thread Glen Stampoultzis
Sorry just released that latest points to the snapshot release so I guess that idea wouldn't make sense. On 14 April 2011 15:27, Glen Stampoultzis wrote: > Good news. I guess it will take a while for Google to catch up. > > Another suggestion if I may. In the documentation page [1] the "Curren

Re: [gradle-user] Searching for Gradle information

2011-04-13 Thread Glen Stampoultzis
Good news. I guess it will take a while for Google to catch up. Another suggestion if I may. In the documentation page [1] the "Current Release" section points to a specifically versioned URL [2]. It might be better to have that point to the "latest" url [3] and update it to the specific version

Re: [gradle-user] Having a tough time as a Gradle novice

2011-04-13 Thread Ken Sipe
Rexxe, could you share your full repo and dependency script blocks? It looks like you are referring to a dependency that doesn't make sense. Testing it out... It looks like mavenCentral has: 'org.aspectj:aspectjrt:1.6.10' but 'org.aspectj:aspectjrt:1.6.11.RELEASE' and 'org.aspectj:aspectj

Re: [gradle-user] Searching for Gradle information

2011-04-13 Thread Ken Sipe
> Glen, > > We recently moved the gradle.org site to machines hosted by contegix. At the > same time, I added the robots.txt file... so.. task complete. > > Ken > > On Apr 13, 2011, at 7:00 PM, Glen Stampoultzis wrote: > >> One issue I constantly run into when searching for gradle informati

[gradle-user] Having a tough time as a Gradle novice

2011-04-13 Thread Rexxe
I recently switched from Maven to Gradle and am really struggling with it. I don't want to have to go back to Maven since I like the concepts of Gradle much more. I am currently trying to compile my code and I get the following cryptic error and have no idea how to fix it: 20:26:47.112 [ERROR] [o

[gradle-user] Feature - Run a build script from a URI

2011-04-13 Thread James Carr
Hi All, I've been thinking it would be useful to be able to run a build script from a uri, for example I could have a hosted gradle script with tasks that generate skeleton project structures like: gradle -b http://repo/gradle-scripts/create.gradle java-jar Thoughts? I've been poking around and

Re: [gradle-user] Importing Gradle Into IntelliJ

2011-04-13 Thread James Carr
Here's the output of gradlew --version: Gradle 1.0-milestone-2 Gradle build time: Friday, 8 April 2011 03:06:53 PM EST Groovy: 1.7.10 Ant: Apache Ant(TM) version 1.8.2 compile

[gradle-user] Searching for Gradle information

2011-04-13 Thread Glen Stampoultzis
One issue I constantly run into when searching for gradle information is that the older version of the docs often rank higher than the newer versions in Google. Have you considered adding a robots.txt to exclude older versions from search engine indexes? That should mean users get the most up-to-

[gradle-user] Gradle wrapper post install hook

2011-04-13 Thread Ronen Narkis
I really like to use the wrapper for installing Gradle on dev machines, still the only part im missing is the ability to customize the installation (like for example download an init file from artifactory and placing it under ~/.gradle), Is there a way to pull such a thing that im not aware of? T

[gradle-user] Re: gradle application plugin - task with name "install" already exists?

2011-04-13 Thread StormeHawke
Created an issue http://issues.gradle.org/browse/GRADLE-1473 -- View this message in context: http://gradle.1045684.n5.nabble.com/gradle-application-plugin-task-with-name-install-already-exists-tp4301699p4301776.html Sent from the gradle-user mailing list archive at Nabble.com.

Re: [gradle-user] Re: gradle application plugin - task with name "install" already exists?

2011-04-13 Thread Rene Groeschke
Hi, the jira instance of gradle has moved to http://issues.gradle.org/ :-) regards, René Am 14.04.11 00:02, schrieb StormeHawke: Rene Groeschke wrote: I think there wasn't a jira raised yet. could you do that? regards, René Happy to... But when I go to http://jira.codehaus.org/browse/GRADLE

[gradle-user] Re: gradle application plugin - task with name "install" already exists?

2011-04-13 Thread StormeHawke
Rene Groeschke wrote: > > I think there wasn't a jira raised yet. could you do that? regards, > René > Happy to... But when I go to http://jira.codehaus.org/browse/GRADLE#selectedTab=com.atlassian.jira.plugin.system.project%3Asummary-panel http://jira.codehaus.org/browse/GRADLE#selectedTab=com

Re: [gradle-user] Re: gradle application plugin - task with name "install" already exists?

2011-04-13 Thread Rene Groeschke
Hi, the problem is that both plugins (maven and application) do declare a install task. this issue was dicussed on that mailinglist before. have a look at http://gradle.1045684.n5.nabble.com/The-maven-and-application-plugins-td4262169.html where adam provided a workaround. I think there wasn't

[gradle-user] Re: gradle application plugin - task with name "install" already exists?

2011-04-13 Thread StormeHawke
I should clarify, this IS a conflict with the maven plugin, just commented it out as a test. Has anybody run into this? Any workarounds? -- View this message in context: http://gradle.1045684.n5.nabble.com/gradle-application-plugin-task-with-name-install-already-exists-tp4301699p4301702.html Sen

[gradle-user] gradle application plugin - task with name "install" already exists?

2011-04-13 Thread StormeHawke
Getting an error when attempting to execute 'gradle :app:PNGenerator:run': FAILURE: Build failed with an exception. * Where: Build file 'C:\git\code\build.gradle' line: 422 * What went wrong: A problem occurred evaluating root project 'code'. Cause: Cannot add task ':app:PNGenerator:install' as

Re: [gradle-user] Importing Gradle Into IntelliJ

2011-04-13 Thread Szczepan Faber
Hey, Can you tell me what's the output of ./gradlew -version? Also, please make sure you have latest sources from github? We fixed a bug related to idea generation recently and I updated the gradle-wrapper.properties accordingly. I've just imported project to idea 9.04 and it worked fine (c'mon,

Re: [gradle-user] what actually triggers a download of dependencies from repository?

2011-04-13 Thread phil swenson
amusingly enough, when I tried to run again to give more info it started working :) So I'm good... On Wed, Apr 13, 2011 at 2:49 PM, Rene Groeschke wrote: > Hi phil, > The compile dependencies are resolved inside the compile task just before > gradle starts compiling your sources. > are you sure

Re: [gradle-user] Re: How can I pass JVM system properties on to my tests?

2011-04-13 Thread Ray Nicholus
I think you're all right. I add a -d to my gradle and confirmed that the property is being passed. I'm using the Geb 0.6 snapshot, which I believe has a bug which causes it to ignore this system prop. I just discovered that an hour ago and posted to the Geb ML. Sorry! On Wed, Apr 13, 2011 at 3

[gradle-user] Re: How can I pass JVM system properties on to my tests?

2011-04-13 Thread Peter Niederwieser
Ray Nicholus wrote: > > The system property doesn't appear to make it to the Geb tests > The following worked fine for me last time I tried: test { systemProperties['geb.driver'] = 'firefox' } -- Peter Niederwieser  Developer, Gradle http://www.gradle.org Trainer & Consultant, Gradleware

Re: [gradle-user] How can I pass JVM system properties on to my tests?

2011-04-13 Thread Szczepan Faber
Hey, task testGeb(type:Test) { jvmArgs '-Dgeb.driver=firefox' Above should definitely passes a system property to the test jvm. Can you validate it by printing/asserting the System.getProperty("geb.driver") from inside the test? I have a feeling that the problem lies elsewhere. Cheers, Szcze

Re: [gradle-user] what actually triggers a download of dependencies from repository?

2011-04-13 Thread Rene Groeschke
Hi phil, The compile dependencies are resolved inside the compile task just before gradle starts compiling your sources. are you sure your dependencies are right. did you try to clean your cache? can you provide the output of your failed build? regards, René Am 13.04.11 22:41, schrieb phil sw

[gradle-user] what actually triggers a download of dependencies from repository?

2011-04-13 Thread phil swenson
I am writing a custom gradle plugin in a subproject that has a build.gradle file that looks like: dependencies { compile project(':bas-plugins-core') compile('com.myco.g11n.lfw:lfw-messageeditor:4.12.7.12', 'com.myco.g11n.lfw:lfw-messageeditor-ptt:1.1.1.1', 'com.myc

Re: [gradle-user] skip a task

2011-04-13 Thread Ken Sipe
Brett, you can also use the onlyIf closure in the task... I'm not sure what you use case is... http://www.gradle.org/0.9-preview-1/docs/javadoc/org/gradle/api/Task.html#onlyIf(groovy.lang.Closure) Ken Sipe | kens...@gmail.com | blog: http://kensipe.blogspot.com On Apr 13, 2011, at 9:59 AM,

[gradle-user] Importing Gradle Into IntelliJ

2011-04-13 Thread James Carr
Hi All, I'm trying to import gradle into intelliJ following the instructions at http://wiki.gradle.org/display/GRADLE/How+to+set+up+the+Gradle+project+in+IntelliJ and everything generated fine but I run into errors when I try to run tests. It cannot find the classes ContextHandlerCollection and S

Re: [gradle-user] Website problems

2011-04-13 Thread Steve Ebersole
I'll second that. Contegix rocks! On 04/13/2011 11:28 AM, Hans Dockter wrote: Hi we had some issues today that our subdomains were not accessible: repo.gradle.org issues.gradle.org wiki.gradle.org Contegix is now ho

Re: [gradle-user] How can I pass JVM system properties on to my tests?

2011-04-13 Thread Ray Nicholus
I should have mentioned that I tried that as well. jvmArgs was my last resort. Neither seem to work for me. On Wed, Apr 13, 2011 at 12:18 PM, Benjamin Jansen wrote: > On Apr 13, 2011, at 9:29 AM, Ray Nicholus wrote: > > > I have the following task > > > > task testGeb(type:Test) { > >jvmArg

Re: [gradle-user] How can I pass JVM system properties on to my tests?

2011-04-13 Thread Benjamin Jansen
On Apr 13, 2011, at 9:29 AM, Ray Nicholus wrote: > I have the following task > > task testGeb(type:Test) { >jvmArgs '-Dgeb.driver=firefox' >include "geb/**/*.class" >testReportDir = new File(testReportDir, "gebtests") > } Have you tried the systemProperties [1,2] Test property? Inste

[gradle-user] zip as an action?

2011-04-13 Thread Eitan Suez
[gmail crashed on my first send, sorry if it ends up getting sent twice] hello, i'm a gradle newb. first of all i'd like to say thank you for gradle. i'm trying to write a task that creates a set of zip files, one per environment. something like this: task packageEnvironments { descri

[gradle-user] zip as an action?

2011-04-13 Thread Eitan Suez
hello, i'm a gradle newb. first of all i'd like to say thank you for gradle. i'm trying to write a task that creates a set of zip files, one per environment. something like this: task packageEnvironments { description = "Package environment-specific artifacts." d

[gradle-user] How can I pass JVM system properties on to my tests?

2011-04-13 Thread Ray Nicholus
I have the following task task testGeb(type:Test) { jvmArgs '-Dgeb.driver=firefox' include "geb/**/*.class" testReportDir = new File(testReportDir, "gebtests") } The system property doesn't appear to make it to the Geb tests, as Geb does not spawn Firefox to run the tests. When I set the

[gradle-user] Website problems

2011-04-13 Thread Hans Dockter
Hi we had some issues today that our subdomains were not accessible: repo.gradle.org issues.gradle.org wiki.gradle.org Contegix is now hosting our website. Which means we have the best support ever, which is very exciting. Unfortunately I forgot to tell them to create the subdomains. This is fix

Re: [gradle-user] skip a task

2011-04-13 Thread Rene Groeschke
Hi Brett, if you have a task named jar, you can do jar.enabled = false in your build script. regards, René Am 13.04.11 16:50, schrieb Brett Cave: I came across some documentation from gradle 0.7 that discusses skipping a task by setting a skip.taskname property. This does not seem to work i

[gradle-user] skip a task

2011-04-13 Thread Brett Cave
I came across some documentation from gradle 0.7 that discusses skipping a task by setting a skip.taskname property. This does not seem to work in the 1.0 milestones. Is there a way to configure gradle to skip a task (from within a build script) in the same way that -x taskname works as a paramete

Re: [gradle-user] Re: [ANN] Gradle 1.0-milestone-2 released

2011-04-13 Thread Adam Murdoch
On 13/04/2011, at 7:51 PM, richardm wrote: > > Adam Murdoch wrote: >> >> This is fixed now: http://issues.gradle.org/browse/GRADLE-1471 >> >> -- >> Adam Murdoch >> Gradle Co-founder >> http://www.gradle.org >> VP of Engineering, Gradleware Inc. - Gradle Training, Support, Consulting >> http://

Re: [gradle-user] Re: [ANN] Gradle 1.0-milestone-2 released

2011-04-13 Thread Rene Groeschke
Hi richard, there is a public artifactory repository that contains gradle snapshots. you can have a look at http://gradle.artifactoryonline.com/gradle/distributions/gradle-snapshots/ for those snapshots. It seems that the latest uploaded snapshot was build on monday. not sure if the fix was a

[gradle-user] Re: [ANN] Gradle 1.0-milestone-2 released

2011-04-13 Thread richardm
Adam Murdoch wrote: > > This is fixed now: http://issues.gradle.org/browse/GRADLE-1471 > > -- > Adam Murdoch > Gradle Co-founder > http://www.gradle.org > VP of Engineering, Gradleware Inc. - Gradle Training, Support, Consulting > http://www.gradleware.com > Thanks. How do I get the fix? Do