How to reference previously declared remote dependency when building an ear file?

(rick.bryant) #1

Gradle Forums,

In my build.gradle have the following dependency defined which is retrieved from remote repository: dependencies {

compile ‘’ }

Also have the following task defined to build and EAR file: task bigtimeEar(type: Ear, group: ‘Custom Ear’, description: ‘Packages bigtime ear file’) {

baseName ‘bigtime’

metaInf {

from (srcDir) {

include ‘application.xml’



//how to include reference to oracle jar defined previously? }

How can the oracle jar be included in the ear task above?

Thanks, Rick