问题
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>
回答1:
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.
来源:https://stackoverflow.com/questions/37175660/gradle-equivalent-to-maven-systempath