Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gradle equivalent to maven systemPath

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>
like image 827
Joel Avatar asked May 12 '16 01:05

Joel


1 Answers

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.

like image 167
Stanislav Avatar answered Nov 08 '22 14:11

Stanislav