RE: [gradle-user] Changes in task definition dsl?

2009-05-26 Thread Pfau, Matthias
Hello Hans, thanks for clearing this up. I just digged into the manual again and saw, that you described my problem in Example 23.2. Anyhow, the difference between adding actions to a task and configuring a task is very small. Kind regards Matthias -Original Message- From: Hans

[gradle-user] Loading dependencies from existing ivy.xml not possible anymore with Gradle 0.6

2009-05-26 Thread DiedrikK
We are using an ivy.xml within Eclipse (+IvyDE plugin), and we want Gradle to pickup that file. In Gradle 0.5.2 there was a simple way to load dependencies from an existing ivy.xml file. dependencies { dependencyDescriptors(

[gradle-user] replacement for antpath in 0.6

2009-05-26 Thread Marcus Better
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I need to set a classpath attribute for an ant task to contain the artefacts of some configuration. In Gradle 0.5 I did it like this: ant.java(classname: 'org.example.Clazz', classpath: dependencies.antpath('myconfig')) But antpath() is

Re: [gradle-user] Dependency troubles (transitive and non-standard)

2009-05-26 Thread Daniel
Ok, I have been trying to confine all the nasty details of that Jython artifact handling thing. But I'm stuck in Gradle. Below is an annotated version of what I have been trying to get working. I tried to confine everything to one task to not have all the details spread through the build code. If

Re: [gradle-user] Announce plugin or task?

2009-05-26 Thread Hans Dockter
On May 25, 2009, at 9:39 PM, Daniel wrote: One neat thing to do on the mac, that is on a related note, would be to support Growl, as Buildr does. It's very nice to have a window popup that says your couple of minutes lasting build failed, while you're surfing the web. Growl has a Java API

Re: [gradle-user] Changes in task definition dsl?

2009-05-26 Thread Hans Dockter
On May 26, 2009, at 1:04 PM, Pfau, Matthias wrote: Hello Hans, thanks for clearing this up. I just digged into the manual again and saw, that you described my problem in Example 23.2. Anyhow, the difference between adding actions to a task and configuring a task is very small. One very

Re: [gradle-user] Announce plugin or task?

2009-05-26 Thread Daniel
The twitter one has already an issue in JIRA: http://jira.codehaus.org/browse/GRADLE-494 One is probably going to be a duplicate of the other... 2009/5/26 Jason Porter lightguard...@gmail.com http://jira.codehaus.org/browse/GRADLE-505 - it contains the growl idea as well as the accounce task

Re: [gradle-user] Dependency troubles (transitive and non-standard)

2009-05-26 Thread Hans Dockter
On May 25, 2009, at 9:46 PM, Daniel wrote: On Tue, May 26, 2009 at 2:33 AM, Hans Dockter m...@dockter.biz wrote: On May 25, 2009, at 6:29 PM, Daniel Mueller wrote: I'm trying to get a small project on Gradle 0.6. Without too much success so far unfortunately. I could try to describe

Re: [gradle-user] Dependency troubles (transitive and non-standard)

2009-05-26 Thread Hans Dockter
Hi Daniel, there is a reasonable solution for your problem. I need to do some polishing and commenting. I will post it during the next couple of hours. - Hans On May 26, 2009, at 4:49 PM, Daniel wrote: Ok, I have been trying to confine all the nasty details of that Jython artifact

Re: [gradle-user] Dependency troubles (transitive and non-standard)

2009-05-26 Thread Daniel
Oh, thanks, that would be awesome. Daniel On Tue, May 26, 2009 at 11:32 PM, Hans Dockter m...@dockter.biz wrote: Hi Daniel, there is a reasonable solution for your problem. I need to do some polishing and commenting. I will post it during the next couple of hours. - Hans On May 26,

[gradle-user] NPE when using exclude rules

2009-05-26 Thread Rafael Serrano
Hi all, I am currently migrating from 0.5 to 0.6 and have almost succeeded (thanks to the breaking changes doc) except for the exclusion of transitive dependencies. Actually, I'm getting a NPE when I try to iterate over the files in a configuration. Here is a code snippet: configurations {

Re: [gradle-user] Dependency troubles (transitive and non-standard)

2009-05-26 Thread Hans Dockter
On May 26, 2009, at 4:49 PM, Daniel wrote: Ok, I have been trying to confine all the nasty details of that Jython artifact handling thing. But I'm stuck in Gradle. Below is an annotated version of what I have been trying to get working. I tried to confine everything to one task to not

Re: [gradle-user] NPE when using exclude rules

2009-05-26 Thread Hans Dockter
Hi Rafa, I can't reproduce this. The following code works for me (MetaModel has a dependency on hsqldb): usePlugin 'java' repositories { mavenCentral() } configurations { all*.exclude group: hsqldb } dependencies { compile dk.eobjects.commons:MetaModel:1.0.7 } task

Re: [gradle-user] trying to improve my custom-resolver-setup

2009-05-26 Thread Hans Dockter
Hi Helmut, On May 25, 2009, at 3:47 PM, Helmut Denk wrote: another thing, i am not sure about is: artifacts { archives war } from the usersguide: The archives configuration is the standard configuration to assign your artifacts to. The Java plugin automatically assigns the default jar

Re: [gradle-user] trying to improve my custom-resolver-setup

2009-05-26 Thread Hans Dockter
On May 25, 2009, at 3:05 PM, Helmut Denk wrote: hi gradle-users, i am just about to upgrade and improve my http://www.nabble.com/common-resolver-setup-across-multiple-gradle-builds-to19570795.html gradle-customization and want to share the results ... maybe get some feedback ;-) here my

Re: [gradle-user] NPE when using exclude rules

2009-05-26 Thread Hans Dockter
On May 26, 2009, at 8:45 PM, Jason Porter wrote: How is this working with Ivy? AFAIK this is broken in Ivy. Not that I know off. What exactly do you mean is broken? The whole Ivy exclude mechanism? - Hans Jason Porter Real Programmers think better when playing Adventure or Rogue.

Re: [gradle-user] Dependency troubles (transitive and non-standard)

2009-05-26 Thread Daniel
Stellar! Thanks for the effort and the writeup. I came across both the configurations copy() and the resolveAsReport() but didn't combine the approaches. Also the assignment of the dependency to a var didn't occur to me (ok, I'm coding in Groovy since 2 days or so ;) ). I continued to search the

Re: [gradle-user] trying to improve my custom-resolver-setup

2009-05-26 Thread Daniel
Oh, that was something that I was wondering about while browsing the code (and looking through the Scala Plugin patch): There's no actual reason to write plugins in Java, or is there? Cheers, Daniel On Wed, May 27, 2009 at 1:55 AM, Hans Dockter m...@dockter.biz wrote: On May 25, 2009, at 3:05

Re: [gradle-user] Dependency troubles (transitive and non-standard)

2009-05-26 Thread Daniel
Ok, the stock PackagerResolver works like: configurations { somestuff } dependencies { somestuff net.sourceforge.jtidy:jtidy:8.0.20060801.131059 } repositories { add(new org.apache.ivy.plugins.resolver.packager.PackagerResolver()) { name = roundup buildRoot = new

Re: [gradle-user] NPE when using exclude rules

2009-05-26 Thread Rafael Serrano
Hi Hans, Thanks for the quick reply. I over-simplified my use case and that example works, but I have just found the problem and it comes when using a flatDir resolver. Here is a failing script: repositories { flatDir name: 'lib', dirs: src/lib mavenCentral().checkconsistency = false

Re: [gradle-user] Is there an example for migrating a J2EE project from Ant to Gradle?

2009-05-26 Thread Dean Schulze
Those links are the same material that is in the user guide, which I've read twice and still don't have a clue about how to use gradle to build a j2ee project. I've written many Ant builds, some very complex, but your documentation doesn't give me a clue about how to do basic things like

Re: [gradle-user] Is there an example for migrating a J2EE project from Ant to Gradle?

2009-05-26 Thread Daniel
Someone is probably going to respond in more detail, but as a first pointer, look at Chapter 15: Java Plugin in combination with Chapter 24: Multiproject builds (if you have separate cohesive units that have to be built in isolation and might depend on each other). And you can still use pure ant

Re: [gradle-user] Is there an example for migrating a J2EE project from Ant to Gradle?

2009-05-26 Thread Luke Taylor
The point of a convention-based approach is that you don't have explicitly run compiler tasks or copy files all over the place. You just stick your files in the place where the Java plugin expects them to be and it compiles them for you, runs your tests and builds your jar file. And yes,