Hi Jeff,
thanks for giving Gradle a try.
On Dec 22, 2008, at 10:43 PM, Jeff Brown wrote:
On Mon, Dec 22, 2008 at 1:17 PM, Jeff Brown <[email protected]>
wrote:
I have a couple of really basic questions. I have a project at
http://github.com/jeffbrown/groovy-measures that I am trying to
gradle-ize. I have found that I have to create the target directory
myself or compile fails. That doesn't sound right so I think I am
just doing something wrong. Also, I am not sure if I am using the
right approach for adding jscience to the classpath.
I think the following would be a better approach:
dependencies {
addFlatDirResolver('myLocalRepo', "$rootDir/lib", .... ) // You
can add an arbitrary number of physical directories here
addMavenRepo()
groovy "org.codehaus.groovy:groovy-all:1.6-beta-2",
":jscience:someversion"
testCompile "junit:junit:3.8.2"
}
My build file is really simple at this point. See
http://github.com/jeffbrown/groovy-measures/tree/master/build.gradle.
Any advice would be appreciated.
Thanks!
I am sure that I found that the target directory was not created by
default and I had to do it explicitly. This afternoon I took a few
minutes to look at the source and it looked like the target dir should
be created by default so I removed my code that was creating the dir
and gave it a spin, and it worked. I don't know if I was using an
earlier version of gradle at some point that didn't create the dir or
maybe I had something else out of whack at my end. In any case, it
looks like I do not need to create the dir on my own at this point,
which is what I want.
Thanks again.
It is a bug in 0.5 which occurs for Groovy projects which have no Java
code. It is fixed in trunk (as you have pointed out, it is a missing
mkdir). We want to have a 0.5.1 release in early January with a couple
of bug fixes.
- Hans
jb
--
Jeff Brown
SpringSource
http://www.springsource.com/
Autism Strikes 1 in 166
Find The Cause ~ Find The Cure
http://www.autismspeaks.org/
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
--
Hans Dockter
Gradle Project lead
http://www.gradle.org
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email