Hi Ricardo,
I think the reason why you have duplicated libs in your war is the location of your libs.
when packaging the war, gradle merges
1. your compiled sources,
2. your webapp folder and
3. the dependencies of your project

into the war file. The when referencing libs you already have in your webapp/WEB-INF lib folder is, that they are copied into the war during step 2 and again when resolving your thirdparty deps in step 3. That's the reason why you have duplicated libs in your war file.

regards,
René


Am 23.07.11 00:50, schrieb Ricardo Mayerhofer:
Hi all,
I'm facing an issue when using war plugin. The resulting war is packed with
duplicated jars in WEB-INF/LIB folder (zip allows files with same name). All
jars are duplicated.

The build script is quite simples and is listed below:

apply plugin: 'war'
apply from: 'xmlbeans.gradle'

weblogicLibDirName =
"${System.getenv()['BEA10_HOME']}/wlserver_10.0/server/lib"
buildDir = file("../build")

configurations {
        xmlbeans { extendsFrom compile }
}

dependencies {
        compile                 fileTree(dir: "src/main/webapp/WEB-INF/lib", 
include: '*.jar')
        providedCompile fileTree(dir: weblogicLibDirName , include: 
'weblogic.jar')
}

Any help is appreciated. Thanks.

--
View this message in context: 
http://gradle.1045684.n5.nabble.com/War-packed-with-duplicated-jars-tp4624905p4624905.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




--
-----------------------
regards René

rene groeschke
http://www.breskeby.com
@breskeby


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

   http://xircles.codehaus.org/manage_email


Reply via email to