Search code examples
javagradlebuild.gradlejt400

Getting a specific Jar with gradle


I'm using this repository to get the driver for my database.

And using this gradle config: compile('net.sf.jt400:jt400:9.5')

I know I can add the specific jar file locally. but is there any way to get gradle to add the jt400-9.5-jt400_jdk8.jar instead of default jt400-9.5.jar?


Solution

  • You can use maven classifiers, they are defined after the version, so it'd look like:

    compile('net.sf.jt400:jt400:9.5:jt400_jdk8')