On 10/02/2011, at 6:12 AM, Rene Groeschke wrote:

> Hi Nathan,
> if you need joined compilation of scala and java sources, you should
> move your java sources to the src/main/scala sourceset.

You can also reconfigure the source directories, something like:

sourceSets.main {
    java.srcDirs = []
    scala.srcDir 'src/main/java'
}


> 
> regards,
> René
> 
> 
> Am 09.02.11 20:07, schrieb Nathan Mills:
>> I have a project that is primarily Java, with a few Scala classes.  But when
>> I try to compile using compileScala, it fails because some of the java
>> classes reference Scala classes, which have not been built yet.  It looks
>> like this is because compileScala depends on compileJava.  Is there anyway
>> to force the compileScala to build first? an preferably do a scalac on both
>> the src/main/java and src/main/scala directories?
>> 
> 
> 
> -- 
> ------------------------------------
> Rene Groeschke
> 
> [email protected]
> http://www.breskeby.com
> http://twitter.com/breskeby
> ------------------------------------
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
> 
>    http://xircles.codehaus.org/manage_email
> 
> 


--
Adam Murdoch
Gradle Developer
http://www.gradle.org
CTO, Gradle Inc. - Gradle Training, Support, Consulting
http://www.gradle.biz

Reply via email to