10

I can't figure out what to put in gradle to satisfy this dependency:

  <dependency>
      <groupId>javax.jnlp</groupId>
      <artifactId>jnlp-api</artifactId>
      <version>8.0</version>
      <scope>system</scope>
      <systemPath>${java.home}/lib/javaws.jar</systemPath>
  </dependency>
Joel
  • 2,601
  • 4
  • 33
  • 44
  • does this help : http://stackoverflow.com/questions/20700053/how-to-add-local-jar-file-dependency-to-build-gradle-file ? – Naman May 12 '16 at 05:35

1 Answers1

7

You can add a dependency on any file within the local filesystem, as:

dependencies {
    compile files("$System.env.JAVA_HOME" + '/lib/javaws.jar')
}

Read about it in the official userguide.

Stanislav
  • 27,441
  • 9
  • 87
  • 82