Luke Stephens wrote:
> 
> I am trying to import the hibernate tools schema generator class into a
> gradle build to generate ddl as part of a JPA project. What is the correct
> way of doing that, and why is it so hard in gradle? Am I missing
> something?
> 

I assume your question is how to add a Jar to the build script's class path.
It's done like this:

buildscript {
  repositories {
    mavenCentral() // or some other repository
  }
  classpath "some:jar:1.0"
}

The user guide has more information on this.

If there is an Ant task that fits your needs, you could also use that.

--
Peter Niederwieser
Principal Engineer, Gradleware 
http://gradleware.com
Creator, Spock Framework 
http://spockframework.org
Twitter: @pniederw


--
View this message in context: 
http://gradle.1045684.n5.nabble.com/Importing-Jar-into-Build-tp4656162p4658073.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