[gradle-user] Gradle Plugin for a new framework

2010-12-09 Thread rajmahendra
Hi I am creating a Gradle plugin for first time for a new Framework. i am trying to create a project structure for the framework. i can create a project using a build.gradle as... task create-dirs { sourceSets.all*.java.srcDirs*.each { it.mkdirs() }

[gradle-user] Compile But Not Runtime Dependency?

2010-12-09 Thread Robert Fischer
I have a jar that I use to mock some code for compiling, but then do not want that mock jar on the classpath for runtime: the functionality is provided by a javaagent. What's the recommended way to handle this? I'm not sure how to redefine the runtime configuration to exclude the jar, so I tried

Re: [gradle-user] Gradle Plugin for a new framework

2010-12-09 Thread Robert Fischer
Is your question how to define new SourceSets representing particular folders? If so, see 21.7 in the User Guide: http://gradle.org/0.9-rc-3/docs/userguide/java_plugin.html#sec:source_sets ~~ Robert. On 9 December 2010 06:09, rajmahendra rajmahen...@gmail.com wrote: Hi I am creating a

Re: [gradle-user] Re: question about urlresolver

2010-12-09 Thread Robert Fischer
Unfortunately, Ivy needs a patterns for artifacts, and those are far from standard on GitHub. If you can define them, though, for a particular project, then you should be able to specify a resolver without too much difficulty. ~~ Robert. On 8 December 2010 19:40, Benjamin Muschko

[gradle-user] Re: Compile But Not Runtime Dependency?

2010-12-09 Thread Robert Fischer
For the record, I've implemented this work-around: configurations { java7Mock } dependencies { java7Mock jsr292Mock } gradle.taskGraph.whenReady { tasks.withType(AbstractCompile).allTasks { Task t - t.classpath = t.classpath + t.project.configurations.java7Mock } }

Re: [gradle-user] Compile But Not Runtime Dependency?

2010-12-09 Thread Adam Murdoch
On 10/12/2010, at 5:19 AM, Robert Fischer wrote: I have a jar that I use to mock some code for compiling, but then do not want that mock jar on the classpath for runtime: the functionality is provided by a javaagent. What's the recommended way to handle this? I'm not sure how to redefine

Re: [gradle-user] Compile But Not Runtime Dependency?

2010-12-09 Thread Robert Fischer
Won't having testCompile extend compileWithExtraStuff result in testRuntime also containing the extra stuff? ~~ Robert. On 9 December 2010 15:51, Adam Murdoch a...@gradle.biz wrote: On 10/12/2010, at 5:19 AM, Robert Fischer wrote: I have a jar that I use to mock some code for compiling, but

[gradle-user] Re: question about urlresolver

2010-12-09 Thread Benjamin Muschko
Robert, thanks for your suggestions. It looks like it doesn't work with the regular GitHub download URL pattern e.g. http://github.com/bmuschko/gradle-tomcat-plugin/downloads/[module]-[revision].[ext] Instead I used this URL pattern which works fine: