I am not sure of TheBestWay as I am still learning gradle myself coming from a 
background of not knowing groovy at all.  What really started 'putting the 
pieces in place' for me was actually writing a plugin+task as I got to see some 
of the inner workings.  

Sourcesets, for example, as well as its 'directories', are largely virtual 
concepts.  As you reference properties et al of the sourceset gradle resolves 
them dynamically.  Very cool and very powerful stuff.

Anyway that really started helping me get into it.

-- Sent from my Palm Prē
[email protected]
http://hibernate.orgtinca wrote:



Hello,



After hours of struggling to get the gradle (groovy) way I must come back to

the start line. What is your advice for a beginner (a long time Java

programmer), who has little or none knowledge in maven, ivy, groovy, gradle

- where to start?

I understand many pieces from what I read and tried till now. It's just they

don't come together. As soon as I need to step beyond what I see in the user

guide I feel lost. For example, in my previous letter a task jar defines the

following:

from sourceSets.main.classes

include [path/to/classes]



I got an error which says: cannot find include() method.

I already know what is sourceSet(s), what is main (I can redefine it for my

purposes). "classes" makes the first headache. My guess that this refers to

the set of classes produced by compile task (available under buildDir

property as defined by project). "from" means a kind of referencing to this

set and include is the selection/filtering from that set.

If I do not want to guess what to do? I find SourceSet in the API, this has

a method getClasses that supports my thinking (but how is it related

main.classes property(?), I cant see formal correspondence). What is "from"

and "include", how do I find their description/meaning? Looking at the

Groovy Reference Card does not seem to help.



Can you advice me where to start with my basic understanding after of what I

can fully enjoy gradle's wonders? 



Your help much appreciated!

-- 

View this message in context: 
http://old.nabble.com/where-to-start-for-a-beginner-tp26741219p26741219.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






Reply via email to