As the documentation states, dependencies are copied into WEB-INF/lib, a
directory _inside_ the generated war file.
Try
jar -tf <warFile>
and you'll see the contents of the war, which should include the hibernate
jars under WEB-INF/lib.
If you want an exploded war (the contents of the war unzipped into a
directory), check out:
http://wiki.gradle.org/display/GRADLE/Cookbook#Cookbook-creationofexplodedwar
ciao
Daz
On 10 May 2011 14:22, Magno Machado <[email protected]> wrote:
> From the documentation about the war plugin:
> "All the dependencies of the runtime
> [9<http://www.gradle.org/current/docs/userguide/war_plugin.html#ftn.N1275A>
> ]configuration are copied to WEB-INF/lib."
>
> I have the following build.gradle:
> apply plugin: 'war'
>
> sourceCompatibility = 1.6
> version = '0.1'
> jar.baseName = 'GradleTest'
>
> repositories {
> mavenCentral()
> mavenRepo urls: "http://repo2.maven.org/maven2/"
> mavenRepo urls: "
> https://repository.jboss.org/nexus/content/groups/public/"
> }
>
> dependencies {
> runtime group: 'org.hibernate', name: 'hibernate-core', version:
> '3.6.4.Final'
> }
>
> 1. When I call 'gradle clean war' from the command line, should I get a
> 'war' folder after a succefull build?
> 2. After calling 'gradle clean war', I looked at 'build/libs' folder and
> there's only a .war file, shouldn't the dependency jars be there?
>
> --
> Magno Machado Paulo
> http://blog.magnomachado.com.br
> http://code.google.com/p/emballo/
>