Hi Michael,
Am 06.01.11 20:46, schrieb Michael Jerger:
> Hi all,
>
> I'm trying to map my build-ideas to gradle, but now I got stuck and cant find
> a
> good point to read the answers for my questions ...
>
> Mybe you can give me the right starting points to read?
>
> I try to describe my problem shortly (for those of you, who can read german,
> there is also an description on
> http://www.jerger.org/de/architectureBuild.html) ... okay, my build owns
> three
> dimensions of configuration,
>
> * 1'st dim: task dependencies - how to handle this is quite clear
>
> * 2'nd dim: Project dependencies - I've seen the "dependencies" section but
> ---> where can a find, which dependencies can be defined (I found compile,
> testCompile in docu)? - which dependency types exists at all?
> ---> How are they linked up to configurations (are theyl)?
the available dependency configurations are depending on the type of
project you're building. The java plugin for example adds some of them.
see chapter "dependency management" at
http://gradle.org/java_plugin.html for details. They are configurations.
so if you want to introduce your own configuration you can do this by
adding:
configurations{
myownconfig
}
to your build script.
> ---> Lets assume, I want use sth. like maven scopes and want to have
> runtime dependencies (affects packing, testing, and transient dependecy
> resolution) or
> aspectj dependencies (to control which aspects are woven), how can I
> introduce such dependency types?
I wrote an aspectj plugin for gradle and an blog article about aspectj
support with gradle. have a look at
http://www.breskeby.com/2010/02/using-gradle-with-aspectj/ and
http://www.breskeby.com/2010/03/speed-up-your-build-with-gradle/
> * 3'rd dim: (My so called) configurations - these configartions I use to
> generate for example different .war files out of one project for different
> servers. So this dimension affects only the artefact-generation (assembly in
> gradels words).
> ---> How can I map this concept to gradle?
you can add several tasks of type "War" to your build file to create
multiple war files out of one project. have a look at the
http://gradle.org/0.9/docs/dsl/org.gradle.api.tasks.bundling.War.html
for details about the War task.
regards,
René
--
------------------------------------
Rene Groeschke
[email protected]
http://www.breskeby.com
http://twitter.com/breskeby
------------------------------------
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email