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
Post a Comment