Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
in Salesforce by (11.9k points)

I want to include enterprise.jar file of salesforce in my project at build time using gradle Could anyone help me out how to include a local jar file that exists in src/main/resources folder in my project.

1 Answer

0 votes
by (32.1k points)

It looks like you want to add a jar file in the build path of the project using Gradle. Here is the code you should use according to me.

dependencies {

    runtime files('libs/a.jar', 'libs/b.jar')

    runtime fileTree('libs') { include '*.jar' }


This is the compile dependency. So you should put a lib directory.

Browse Categories