Including local jar file in project at build time using gradle

前端 未结 1 1179
天涯浪人
天涯浪人 2020-12-13 13:56

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

相关标签:
1条回答
  • 2020-12-13 14:43

    This is explained in the documentation. The following should do:

    dependencies {
        compile files('./src/main/resources/enterprise.jar')
    }
    

    I wouldn't put the jar in src/main/resources though. It's not a resource of your project, but a compile dependency. I would put it in a lib directory.

    0 讨论(0)
提交回复
热议问题