Including local jar file in project at build time using gradle

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.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)