Re: [gradle-user] How to express jar dependency from a non jar project ?

2010-11-27 Thread Adam Murdoch
On 27/11/2010, at 3:47 AM, frenchyan wrote: Hello In a multi-project environment, I have a project1 which is a java project defined this way: // project1 apply plugin: 'java' repositories { mavenCentral() } dependencies { compile 'org.json:json:20090211' runtime

[gradle-user] Incremental build and dependencies?

2010-11-27 Thread Steven Devijver
Hey, I have these tasks: def my_dir = test_dir task A(type: Delete) { delete = my_dir } task B(dependsOn: A) { outputs.upToDateWhen { file(my_dir).exists() } doFirst { ant.mkdir dir: my_dir } } I was assuming that when a task is up-to-date its dependencies wouldn't be executed. However, B is

Re: [gradle-user] Incremental build and dependencies?

2010-11-27 Thread Robert Fischer
What are the semantics you are trying to communicate here? What are you trying to accomplish? ~~ Robert. On 27 November 2010 17:48, Steven Devijver sdevij...@yahoo.fr wrote: Hey, I have these tasks: def my_dir = test_dir task A(type: Delete) { delete = my_dir } task B(dependsOn: A) {

[gradle-user] Re: Incremental build and dependencies?

2010-11-27 Thread sdevijver
Robert Fischer wrote: What are the semantics you are trying to communicate here? What are you trying to accomplish? ~~ Robert. The script is a simplification from a more complex one. Basically I don't want A to delete a folder when B's work in that folder is up to date. Steven --

[gradle-user] cannot define task type in external script

2010-11-27 Thread Etienne Studer
Hi I tried to define a task type DirSizeCheck in an external script and include it in my main script: apply from: 'other.gradle' Gradle finds the script but, unfortunately, it does not recognize my task type and errors out in my main script with: A problem occurred evaluating root project

Re: [gradle-user] cannot define task type in external script

2010-11-27 Thread Adam Murdoch
On 28/11/2010, at 10:21 AM, Etienne Studer wrote: Hi I tried to define a task type DirSizeCheck in an external script and include it in my main script: apply from: 'other.gradle' Gradle finds the script but, unfortunately, it does not recognize my task type and errors out in my