gradle-karaf-plugin icon indicating copy to clipboard operation
gradle-karaf-plugin copied to clipboard

project dependency does not have a version

Open elpinjo opened this issue 6 years ago • 5 comments

I have bnd project consisting of 3 sub-projects. one sub project is the karaf "feature" project, the two other projects are my provider bundle and application bundle.

the build.gradle of the "feature" project contains the following dependencies:

dependencies { iot project(':com.iotapp.provider') iot project(':com.iotapp.application') mqtt 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.1.1' }

karaf { features { name = "${project.name}-${version}" xsdVersion = '1.3.0' outputFile = file("${project.buildDir}/karaf/features/${project.name}-feature.xml") includeProject = false;

feature {
	name        = 'iotapp'
	description = 'iot message processing'
	
	configurations 'mqtt', 'iot'
            feature 'scr'
   }

} }

When I run the gradle generateFeatures it generates the following feature xml:

scr mvn:org.eclipse.paho/org.eclipse.paho.client.mqttv3/1.1.1 mvn:com.iot/com.iot.provider/unspecified mvn:com.iot/com.iot.application/unspecified

as you can see in the last two bundles no version is added.

elpinjo avatar Sep 08 '17 19:09 elpinjo