An even better solution will be to add the pom configuration to the gradle script for the project. That will allow gradle to use the install task.