Anybody?

Narco wrote:
> 
> Hello!
> I need some guru help now. My goal initially was to develop gradle scripts
> as standalone package which after then can be added to any multi-project
> in build classpath to build with default configuration/layout/options
> which I have defined.
> To archieve that I have developed root/build.gradle script which works
> fine with my root/* projects and has no direct definition about any
> projects. Almost every root/* project (eg root/app/,
> root/ejb-module-session/) has build.gradle script to define dependencies
> between other projects and property file to mark its behaviour. Also I
> have root/setting.gradle where all my projects are defined. 
> Now I want to make standalone file as discussed above. As I understood
> from documentation buildSrc folder works absolutely the same if I would be
> adding jar with compiled build scripts to buildScript() so I started in
> this way.
> Adding to root/buildSrc/build.gradle did not worked at all. Gradle just
> says that none of default tasks (clean, compile etc) is defined.
> Adding to root/buildSrc/src/main/groovy started to process something but
> still gives another bad results:
> C:\work\perf\SCM\Build\Ant\Project\Release_2_0_1\MDL>gradle clean
> [ant:jar] Warning: skipping jar archive
> C:\work\perf\SCM\Build\Ant\Project\Relea
> se_2_0_1\MDL\buildSrc\build\libs\buildSrc-SNAPSHOT.jar because no files
> were inc
> luded.
> [ant:jar] Warning: skipping jar archive
> C:\work\perf\SCM\Build\Ant\Project\Relea
> se_2_0_1\MDL\buildSrc\build\libs\buildSrc-SNAPSHOT.jar because no files
> were inc
> luded.
> 
> FAILURE: Build failed with an exception.
> 
> * Where:
> Build file
> 'C:\work\perf\SCM\Build\Ant\Project\Release_2_0_1\MDL\ejb-module-sess
> ion\build.gradle' line: 10
> 
> * What went wrong:
> A problem occurred evaluating project ':ejb-module-session'.
> Cause: No signature of method:
> org.gradle.api.internal.artifacts.dsl.dependencie
> s.DefaultDependencyHandler.compile() is applicable for argument types:
> (org.grad
> le.api.internal.artifacts.dependencies.DefaultProjectDependency) values:
> [Defaul
> tProjectDependency{dependencyProject='project ':app'',
> configurationdefault'}]
> 
> * Try:
> Run with -s or -d option to get more details. Run with -S option to get
> the full
>  (very verbose) stacktrace.
> 
> BUILD FAILED
> 
> Total time: 3.594 secs
> 
> One more thing to think about. The functionality I need is not only common
> multi-project build but also ability to define some multi-project specific
> behavior in root/build.gradle or project specific in root/app/build.gradle
> for example. A half of year ago when starting to investigate gradle Hans
> was sure that this is possible. Now I`m ready to implement it!
> 
> Please help me asap!
> 

-- 
View this message in context: 
http://www.nabble.com/buildsrc-and-buildScript%28%29-usability-for-multi-project-builds-tp25888572p25923406.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