|
View:
New views
17 Messages
—
Rating Filter:
Alert me
|
|
|
Roadmap DocumentWe want to make our roadmap document more helpful for the community.
So far the roadmap was a static website which didn't get much attention and had a lot of stale information. We have now moved the roadmap to our Wiki. This enables user comments, makes it easier to update and thus hopefully less stale. For the release in progress we indicate also which features are already implemented in trunk. The new roadmap document can be found here: http://docs.codehaus.org/display/GRADLE/Roadmap - Hans -- Hans Dockter Gradle Project Manager http://www.gradle.org --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|||||
|
|
A naive questionHi all,
I'm just started to get to know to gradle and would like to use it more heavily in our projects. I read the wonderful User's guide but what I miss is a simple build file example (or was I too blind to see it ?) The user guide shows nicely several parts of a building system, but a simple example would be nice. Can anyone point me to something or give me an example of a simple build file in gradle, which e.g. has dependencies, compiles, builds a jar / war or whatever. I just want to see some real file to see the syntax working.... Thanks for that Andreas -- Andreas Jöcker GiS - Gesellschaft für integrierte Systemplanung mbH Junkersstr. 2 69469 Weinheim E-Mail a.joecker@... Telefon +49 6201 503-59 Fax +49 6201 503-66 Gesellschaft für integrierte Systemplanung mbH Geschäftsführer: Eckhard Haffmann, Alfred Gai, Bernd Heselmann Sitz der Gesellschaft: Zeppelinstr. 11 - 91052 Erlangen Amtsgericht Fürth/Bayern - Handelsregister-Nr. HRB 3435 --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|||||
|
|
Re: A naive questionOn Jun 4, 2009, at 9:20 AM, Andreas Jöcker wrote: > Hi all, > > I'm just started to get to know to gradle and would like to use it > more > heavily in our projects. > I read the wonderful User's guide but what I miss is a simple build > file > example (or was I too blind to see it ?) > The user guide shows nicely several parts of a building system, but a > simple example would be nice. > > Can anyone point me to something or give me an example of a simple > build > file in gradle, which e.g. has dependencies, compiles, builds a jar / > war or whatever. > > I just want to see some real file to see the syntax working.... There is one in the user's guide. For example UG 6.1.5: http://gradle.org/0.6.1/docs/userguide/tutorial_java_projects.html#N1040A Additionally the gradle distribution comes shipped with a samples directory. Samples you might be interested in are webApplication/ quickstart and java/quickstart and java/multiproject. We plan to add an Appendix with those samples to the user's guide. - Hans -- Hans Dockter Gradle Project Manager http://www.gradle.org --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|||||
|
|
Re: A naive questionthanks Hans - I knew I'm just too blind....
will have also a look into the distribution. Cheers Andreas Am 04.06.2009 09:31, Hans Dockter schrieb: > On Jun 4, 2009, at 9:20 AM, Andreas Jöcker wrote: > > >> Hi all, >> >> I'm just started to get to know to gradle and would like to use it >> more >> heavily in our projects. >> I read the wonderful User's guide but what I miss is a simple build >> file >> example (or was I too blind to see it ?) >> The user guide shows nicely several parts of a building system, but a >> simple example would be nice. >> >> Can anyone point me to something or give me an example of a simple >> build >> file in gradle, which e.g. has dependencies, compiles, builds a jar / >> war or whatever. >> >> I just want to see some real file to see the syntax working.... >> > > There is one in the user's guide. For example UG 6.1.5: http://gradle.org/0.6.1/docs/userguide/tutorial_java_projects.html#N1040A > > Additionally the gradle distribution comes shipped with a samples > directory. Samples you might be interested in are webApplication/ > quickstart and java/quickstart and java/multiproject. > > We plan to add an Appendix with those samples to the user's guide. > > - Hans > > -- > Hans Dockter > Gradle Project Manager > http://www.gradle.org > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > -- Andreas Jöcker GiS - Gesellschaft für integrierte Systemplanung mbH Junkersstr. 2 69469 Weinheim E-Mail a.joecker@... Telefon +49 6201 503-59 Fax +49 6201 503-66 Gesellschaft für integrierte Systemplanung mbH Geschäftsführer: Eckhard Haffmann, Alfred Gai, Bernd Heselmann Sitz der Gesellschaft: Zeppelinstr. 11 - 91052 Erlangen Amtsgericht Fürth/Bayern - Handelsregister-Nr. HRB 3435 --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|||||
|
|
|
| Andreas, I had the same question you did after reading the first several chapters of the User's Guide. I recently posted my question on this list. What the User's Guide doesn't explain is that Gradle is a convention-based build system. The gradle build examples that come with the distribution are surprisingly short. They don't need to declare many of the things that you would declare with Ant because they follow the gradle (Maven2) convention. It's built into gradle and the Java Plugin by default. The problem comes when you have to adapt gradle to an existing project strucure. You're faced with re-defining the conventions that gradle expects. Others have told me that it's not that difficult to do, but I haven't had time to try it so far. The User's Guide needs to be re-written. It just leaves you scratching your head the way it is now. It also needs to show how to re-define the Java Plugin for the various ways that existing Java/J2EE projects are structured. Good luck. --- On Thu, 6/4/09, Andreas Jöcker <a.joecker@...> wrote:
|
We want to make our roadmap document more helpful for the community. So far the roadmap was a static website which didn't get much attention and had a lot of stale information. We have now moved the roadmap to our Wiki. This enables user comments, makes it easier to update and thus hopefully less stale. For the release in progress we indicate also which features are already implemented in trunk.
The new roadmap document can be found here: http://docs.codehaus.org/display/GRADLE/Roadmap
- Hans
--
Hans Dockter
Gradle Project Manager
http://www.gradle.org
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
"... I always end up just trying a bunch of stuff that looks like it should be right. Fortunately, within four or five tries I get it right." I share your pain. I haven't been able to figure out how to incorporate gradle into my existing projects either, and I don't have the time to futz with it. I don't know why gradle has to have this barrier to entry. An experienced Java/Ant developer should be able to pick up a groovy based build system quickly, but for some reason that isn't the case with gradle. Gradle has turned out to be more like Maven than Ant when it comes to learning curve. I wonder if the key to this problem is gradle's convention-based mentality. Most existing projects don't follow gradle's convention. They are all over the place. Refactoring existing projects to meet the gradle/Maven2 conventions is the tail wagging the dog and that will prevent gradle adoption and keep it a niche product. In this way convention based build tools have become an obstacle instead of a useful tool. You're right when you say we need non-trivial examples. Especially examples that don't follow the gradle/Maven2 convention. I've heard that it is easy to modify the Java plugin for other project structures - unless your tests are in the src/ directory. It sounds like what we need are real examples of modifying the Java plugin to work with some non-conventional project structures, or maybe even examples of how to write out own plugins for existing project structures. I also recently tried using the groovy AntBuilder tool as an alternative to Ant itself, but AntBuilder is broken. Instantiating an AntBuilder throws java.lang.NoClassDefFoundError: org/apache/tools/ant/DemuxInputStream http://www.groovy-forum.org/viewtopic.php?p=1128&sid=03569a338075bc1a5881a4eaa4e9222f#1128 This happnes in Eclipse. (Yes I've changed my Ant Home setting to Ant 1.7.1 instead of whatever version of Ant comes bundled with Eclipse.) Maybe it would work outside of Eclipse, but if I can't use it from within Eclipse it's no good for me. Other people have seen this Exception and I've posted it to the groovy forum, but no one responds. There was a Thread about this a couple of months ago where Guillaume Laforge finally asked if the poster if he had found a work around. The poster replied that his work around was to go back to the Java way: http://www.gg3721.com/list/49/74177.html Groovy-based build tools should be good, but they arent. Trying to adopt groovy-based build tools has been a waste of time. Maybe Ant is still the best build tool out there. --- On Thu, 6/4/09, Paul Speed <pspeed@...> wrote:
|
Andreas,
I had the same question you did after reading the first several chapters of the User's Guide. I recently posted my question on this list.
What the User's Guide doesn't explain is that Gradle is a convention-based build system. The gradle build examples that come with the distribution are surprisingly short. They don't need to declare many of the things that you would declare with Ant because they follow the gradle (Maven2) convention. It's built into gradle and the Java Plugin by default.
The problem comes when you have to adapt gradle to an existing project strucure. You're faced with re-defining the conventions that gradle expects. Others have told me that it's not that difficult to do, but I haven't had time to try it so far.
The User's Guide needs to be re-written.
It just leaves you scratching your head the way it is now. It also needs to show how to re-define the Java Plugin for the various ways that existing Java/J2EE projects are structured.
Good luck.
--- On Thu, 6/4/09, Andreas Jöcker a.joecker@... wrote:
From: Andreas Jöcker a.joecker@...
Subject: [gradle-user] A naive question
To: user@...
Date: Thursday, June 4, 2009, 1:20 AM
Hi all,
I'm just started to get to know to gradle and would like to use it more
heavily in our projects.
I read the wonderful User's guide but what I miss is a simple build file
example (or was I too blind to see it ?)
The user guide shows nicely several parts of a building system, but a
simple example would be nice.
Can anyone point me to something or give me an example of a simple build
file in gradle, which e.g. has dependencies, compiles, builds a jar /
war or whatever.
I just want to see some real file to see the syntax working....
Thanks for that
Andreas
--
Andreas Jöcker
GiS - Gesellschaft für integrierte Systemplanung mbH
Junkersstr. 2
69469 Weinheim
E-Mail a.joecker@...
Telefon +49 6201 503-59
Fax +49 6201 503-66
Gesellschaft für integrierte Systemplanung mbH
Geschäftsführer: Eckhard Haffmann, Alfred Gai, Bernd Heselmann
Sitz der Gesellschaft: Zeppelinstr. 11 - 91052 Erlangen
Amtsgericht Fürth/Bayern - Handelsregister-Nr. HRB 3435
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
"... I always end up just trying a bunch of stuff that looks like it should be right. Fortunately, within four or five tries I get it right."
I share your pain. I haven't been able to figure out how to incorporate gradle into my existing projects either, and I don't have the time to futz with it.
I don't know why gradle has to have this barrier to entry. An experienced Java/Ant developer should be able to pick up a groovy based build system quickly, but for some reason that isn't the case with gradle. Gradle has turned out to be more like Maven than Ant when it comes to learning curve.
I wonder if the key to this problem is gradle's convention-based mentality. Most existing projects don't follow gradle's convention. They are all over the place. Refactoring existing projects to meet the gradle/Maven2 conventions is the tail wagging the dog and that will prevent gradle adoption and keep it a niche product. In this way convention based build tools have become an obstacle instead of a useful tool.
You're right when you say we need non-trivial examples. Especially examples that don't follow the gradle/Maven2 convention.
I've heard that it is easy to modify the Java plugin for other project structures - unless your tests are in the src/ directory. It sounds like what we need are real examples of modifying the Java plugin to work with some non-conventional project structures, or maybe even examples of how to write out own plugins for existing project structures.
I also recently tried using the groovy AntBuilder tool as an alternative to Ant itself, but AntBuilder is broken. Instantiating an AntBuilder throws
java.lang.NoClassDefFoundError: org/apache/tools/ant/DemuxInputStream
http://www.groovy-forum.org/viewtopic.php?p=1128&sid=03569a338075bc1a5881a4eaa4e9222f#1128
This happnes in Eclipse. (Yes I've changed my Ant Home setting to Ant 1.7.1 instead of whatever version of Ant comes bundled with Eclipse.) Maybe it would work outside of Eclipse, but if I can't use it from within Eclipse it's no good for me.
Other people have seen this Exception and I've posted it to the groovy forum, but no one responds. There was a Thread about this a couple of months ago where Guillaume Laforge finally asked if the poster if he had found a work around. The poster replied that his work around was to go back to the Java way:
http://www.gg3721.com/list/49/74177.html
Groovy-based build tools should be good, but they arent. Trying to adopt groovy-based build tools has been a waste of time. Maybe Ant is still the best build tool out there.
--- On Thu, 6/4/09, Paul Speed pspeed@... wrote:
From: Paul Speed pspeed@...
Subject: Re: [gradle-user] A naive question
To: user@...
Date: Thursday, June 4, 2009, 12:44 PM
Hans Dockter wrote:
>> What the User's Guide doesn't explain is that Gradle is a convention-based build system.
>
> I see this differently. Gradle offers optional plugins that allow for convention based builds. You don't need to use and still have a powerful general purpose build tool.
>
I haven't looked at the latest docs so I'm only going from the 0.5.2
ones but maybe what is needed are a few non-plug-in, non-trivial
examples. I know I can do everything in gradle that I could do in ANT
but not being a groovy expert and not knowing ant builder well (or
whatever the ant-groovy thing is), I always end up just trying a bunch
of stuff that looks like it should be right. Fortunately, within four
or five tries I get it right.
Sometimes I can find a near enough example in the documentation but I
almost have to completely re-read it to pick those gems out.
Not trying to be overly critical...
-Paul
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
| Adam, Your "starting point" below is exactly what I need, and I think it is what others need too. We must be living in different worlds (planet Maven and planet Earth). I've never worked on -- and can't even remember seeing -- a project with the structure src/main for Java code. Look at how eclipse creates projects for Java and J2EE. The source code goes in src/. Some projects that put it into src/java. (Yes, it is configurable in Eclipse, but src/ is the default.) Why not use the Eclipse defaults? It's the most widely used IDE. (I can't remember where IntelliJ and NetBeans put Java source by default.) Please expand more on your starting points. Some other immediate issues: Building .war files: How do I build a .war if my deployment descriptors are in etc/, conf/, or somewhere else? I use a convention for third party jar files that works like this: lib/vendor_name/product_name/version_number/something.jar How do I tell Gradle to put certain .jar files into WEB-INF/lib, but not others? That should get me started so I can ask better questions. --- On Fri, 6/5/09, Adam Murdoch <a@...> wrote:
|
| Free embeddable forum powered by Nabble | Forum Help |