Deploying to mavenLocal() and but unable to pull from maven local

I have a gradle project which writes a snapshot artifact to a maven local repository “mavenLocal()”. This seems to work just fine. I also have another gradle script that uses this artifact as a dependency but fails to find it . Keep in mind i have mavenLocal() as my repository to search for the specific artifact.

  • What went wrong:
    A problem occurred evaluating root project ‘app’.

Could not resolve all dependencies for configuration ‘:myapp’.
Could not find com.asolomon.module:app:1.0.0.SNAPSHOT.
Searched in the following locations:
file:/Users/asolomon/.m2/repository/com/asolomon/module/app/1.0.0.SNAPSHOT/app/1.0.0.SNAPSHOT/app-1.0.0.SNAPSHOT.pom
file:/Users/asolomon/.m2/repository/com/asolomon/module/app/1.0.0.SNAPSHOT/app-1.0.0.SNAPSHOT.zip
Required by:
project :

This is what I have for the gradle code

configurations {
myapp
}

dependencies {
myapp “com.asolomon.module:app:1.0.0.SNAPSHOT:@zip
}

task extractApp(type: Copy) {
configurations.myapp.each { file →
from zipTree(artifact)
into “$buildDir/tmp”
}
}

I’m trying to do the same thing. Did you ever get a resolution on this?