I have the following layout:
$ find play-2.1.1/repository/local/play/play_2.10/2.1.1 -name ‘play*.pom’ -o -name ‘play*.jar’ | xargs ls -l
-rw-r–r--@ 1 nyap 2119906183 4683354 Apr 2 05:25 play-2.1.1/repository/local/play/play_2.10/2.1.1/jars/play_2.10.jar
lrwxr-xr-x 1 nyap 2119906183
18 Jun 29 17:11 play-2.1.1/repository/local/play/play_2.10/2.1.1/play-2.1.1.jar -> jars/play_2.10.jar
lrwxr-xr-x 1 nyap 2119906183
18 Jun 29 17:11 play-2.1.1/repository/local/play/play_2.10/2.1.1/play-2.1.1.pom -> poms/play_2.10.pom
lrwxr-xr-x 1 nyap 2119906183
18 Jun 29 17:20 play-2.1.1/repository/local/play/play_2.10/2.1.1/play_2.10.jar -> jars/play_2.10.jar
lrwxr-xr-x 1 nyap 2119906183
18 Jun 29 17:20 play-2.1.1/repository/local/play/play_2.10/2.1.1/play_2.10.pom -> poms/play_2.10.pom
-rw-r–r--@ 1 nyap 2119906183
6513 Apr 2 05:25 play-2.1.1/repository/local/play/play_2.10/2.1.1/poms/play_2.10.pom
-rw-r–r--@ 1 nyap 2119906183
372324 Apr 2 05:25 play-2.1.1/repository/local/play/play_2.10/2.1.1/srcs/play_2.10-sources.jar
-rw-r–r--@ 1 nyap 2119906183
39690 Apr 2 05:25 play-2.1.1/repository/local/play/play_2.10/2.1.1/srcs/play_2.10-test-sources.jar
And the following in ‘build.gradle’:
repositories {
mavenCentral()
maven {
url “file://${projectDir}/play-2.1.1/repository/local”
} }
repositories {
mavenCentral()
maven {
url “file://${projectDir}/play-2.1.1/repository/local”
}
}
dependencies {
compile ‘play:play_2.10:2.1.1’
}
But Gradle is still not able to find the dependency.
Using hard links (instead of symlinks) doesn’t change the behavior.