java - Gradle get other project jar file path -


i trying add task multi-project build copy gradle-generated jar file different subproject in location. tried this:

task createclientjar(type: copy, dependson: 'jar') {   from(project(':other').libsdirname      + project(':other').tasks.jar.archivepath)   rootproject.file('libs/unmanaged') } 

however following:

> not find property 'jar' on task set. 

what doing wrong?

add ':other:jar' to:

task createclientjar(type: copy, dependson: ':other:jar') { ... } 

and work! more info https://docs.gradle.org/current/userguide/multi_project_builds.html


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -