lburgazzoli / gradle-karaf-plugin

Apache License 2.0
21 stars 13 forks source link

gradle generateFeatures fails in multi project build with dependency substitution #63

Open restlesswind opened 6 years ago

restlesswind commented 6 years ago

mock.zip Hi,

I suspect this is a problem of the plugin. The problem encountered is that gradle generateFeatures will fail in a multi project build scenario if dependency substitution is configured (flow-collection/build.gradle). If you commented out the following lines, the build will pass. mock examples attached (will need to correct the maven repo url for your setup).

Please let me know your thoughts. Thanks. /Jian

dependency.useTarget targetProject

** build log and stack trace [***]()

Selected primary task 'generateFeatures' from project :

FAILURE: Build failed with an exception.

realPyR3X commented 5 years ago

I run a multi-project build with this plug-in and do not have any issues. I don't think you are using this plugin correctly. You should have a karaf block in your root project and define a feature. I usually create a feature with a configuration of the set of subprojects that I have (i.e. Bundles).