EAR Plugins creates a lib Dir for all the jars

plugins

(karthik reddy) #1

[/quote]
Project Dir

[/quote]

.gradle*

apply plugin: ‘ear’

dependencies {
deploy project(path: ‘:Web’, configuration: ‘archives’)
earlib fileTree (dir: “…/EAR”, include: ‘*.jar’)
}

ear {

metaInf {

    from 'META-INF'

    exclude 'MANIFEST.MF'
    exclude 'application.xml'

}
manifest{
    from 'META-INF/MANIFEST.MF'
    
}

}[quote=“karthik, post:1, topic:23959, full:true”]
apply plugin: ‘ear’

dependencies {
deploy project(path: ‘:Web’, configuration: ‘archives’)
earlib fileTree (dir: “…/EAR”, include: ‘*.jar’)
}

ear {

metaInf {

    from 'META-INF'

    exclude 'MANIFEST.MF'
    exclude 'application.xml'

}
manifest{
    from 'META-INF/MANIFEST.MF'
    
}

}
[/quote]

I need all jars to be in the BaseDir of EAR, instead of creating lib Dir for all those jars.