[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] 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