We're not trying to package our source files.  The GWT compiler needs the
source code for any libraries that we include.

For example, the POM for gwt-user 2.4.0-rc1 includes this:

<dependencies>
 <dependency>
  <groupId>javax.validation</groupId>
  <artifactId>validation-api</artifactId>
  <version>1.0.0.GA</version>
 </dependency>
 <dependency>
  <groupId>javax.validation</groupId>
  <artifactId>validation-api</artifactId>
  <version>1.0.0.GA</version>
  <classifier>sources</classifier>
 </dependency>
</dependencies>

When gradle sets up the classpath, only the source jar is on the classpath. 
Additionally, I use hibernate-validator and need to include the sources on
my classpath there as well. When I set up my dependencies like this:

        compile group: 'org.hibernate', name: 'hibernate-validator', version:
'4.2.0.Final' 
        compile group: 'org.hibernate', name: 'hibernate-validator', version:
'4.2.0.Final', classifier: 'source'

only one will be included.

I'm sure I could put them in a folder in my project and include them
directly, but I'd rather not.  Is there a more elegant way to handle it?

Thanks,
DDC

--
View this message in context: 
http://gradle.1045684.n5.nabble.com/Source-jar-on-classpath-for-GWT-tp4666458p4667167.html
Sent from the gradle-user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to