uklance / gradle-dependency-export

Export maven dependencies from a gradle project to the file system
28 stars 15 forks source link

fix plugin fail when pom file not available #14

Closed birukovsergey closed 4 years ago

birukovsergey commented 4 years ago

this commit fix plugin crash when pom file not available in remote maven repository

birukovsergey commented 4 years ago

how abaut this? default value for 'project' propery is current project permissible values - ALL_PROJECTS - fro all projects or string array with project names

uklance commented 4 years ago

It's standard practice for a plugin to apply to a single project. If you want to apply the plugin to all of your projects you can simply do

allprojects {
   apply plugin: "com.lazan.dependency-export"
}
birukovsergey commented 4 years ago

Really ... It seems I have complicated everything too much. What do you say about unavailable pom files?

uklance commented 4 years ago

The default behaviour should be to fail on unresolved artifacts. I'd probably want a flag which can be set.

failOnUnresolvedArtifact = false 
birukovsergey commented 4 years ago

like this?