{"action":"created","issue":{"url":"https://api.github.com/repos/lburgazzoli/gradle-karaf-plugin/issues/59","repository_url":"https://api.github.com/repos/lburgazzoli/gradle-karaf-plugin","labels_url":"https://api.github.com/repos/lburgazzoli/gradle-karaf-plugin/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/lburgazzoli/gradle-karaf-plugin/issues/59/comments","events_url":"https://api.github.com/repos/lburgazzoli/gradle-karaf-plugin/issues/59/events","html_url":"https://github.com/lburgazzoli/gradle-karaf-plugin/issues/59","id":256349232,"number":59,"title":"project dependency does not have a version","user":{"login":"elpinjo","id":4513460,"avatar_url":"https://avatars3.githubusercontent.com/u/4513460?v=4","gravatar_id":"","url":"https://api.github.com/users/elpinjo","html_url":"https://github.com/elpinjo","followers_url":"https://api.github.com/users/elpinjo/followers","following_url":"https://api.github.com/users/elpinjo/following{/other_user}","gists_url":"https://api.github.com/users/elpinjo/gists{/gist_id}","starred_url":"https://api.github.com/users/elpinjo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elpinjo/subscriptions","organizations_url":"https://api.github.com/users/elpinjo/orgs","repos_url":"https://api.github.com/users/elpinjo/repos","events_url":"https://api.github.com/users/elpinjo/events{/privacy}","received_events_url":"https://api.github.com/users/elpinjo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-09-08T19:27:56Z","updated_at":"2017-09-17T19:45:17Z","closed_at":null,"author_association":"NONE","body":"I have bnd project consisting of 3 sub-projects.\r\none sub project is the karaf \"feature\" project, the two other projects are my provider bundle and application bundle.\r\n\r\nthe build.gradle of the \"feature\" project contains the following dependencies:\r\n\r\ndependencies {\r\n  iot project(':com.iotapp.provider')\r\n  iot project(':com.iotapp.application')\r\n  mqtt 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.1.1'\r\n}\r\n\r\nkaraf {\r\n  features {\r\n  \tname = \"${project.name}-${version}\"\r\n  \txsdVersion = '1.3.0'\r\n  \toutputFile = file(\"${project.buildDir}/karaf/features/${project.name}-feature.xml\")\r\n  \tincludeProject = false;\r\n  \t\r\n  \tfeature {\r\n  \t\tname        = 'iotapp'\r\n  \t\tdescription = 'iot message processing'\r\n  \t\t\r\n  \t\tconfigurations 'mqtt', 'iot'\r\n                feature 'scr'\r\n       }\r\n  }\r\n}\r\n\r\nWhen I run the gradle generateFeatures it generates the following feature xml:\r\n\r\n<features xmlns=\"http://karaf.apache.org/xmlns/features/v1.3.0\" name=\"com.iot.features-1.1.0.201709062010-SNAPSHOT\">\r\n<feature name=\"iot\" version=\"1.1.0.201709062010-SNAPSHOT\" description=\"iot message processing\">\r\n<feature>scr</feature>\r\n<bundle>\r\nmvn:org.eclipse.paho/org.eclipse.paho.client.mqttv3/1.1.1\r\n</bundle>\r\n<bundle>\r\nmvn:com.iot/com.iot.provider/unspecified\r\n</bundle>\r\n<bundle>\r\nmvn:com.iot/com.iot.application/unspecified\r\n</bundle>\r\n</feature>\r\n</features>\r\n\r\n\r\nas you can see in the last two bundles no version is added."},"comment":{"url":"https://api.github.com/repos/lburgazzoli/gradle-karaf-plugin/issues/comments/330078349","html_url":"https://github.com/lburgazzoli/gradle-karaf-plugin/issues/59#issuecomment-330078349","issue_url":"https://api.github.com/repos/lburgazzoli/gradle-karaf-plugin/issues/59","id":330078349,"user":{"login":"elpinjo","id":4513460,"avatar_url":"https://avatars3.githubusercontent.com/u/4513460?v=4","gravatar_id":"","url":"https://api.github.com/users/elpinjo","html_url":"https://github.com/elpinjo","followers_url":"https://api.github.com/users/elpinjo/followers","following_url":"https://api.github.com/users/elpinjo/following{/other_user}","gists_url":"https://api.github.com/users/elpinjo/gists{/gist_id}","starred_url":"https://api.github.com/users/elpinjo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elpinjo/subscriptions","organizations_url":"https://api.github.com/users/elpinjo/orgs","repos_url":"https://api.github.com/users/elpinjo/repos","events_url":"https://api.github.com/users/elpinjo/events{/privacy}","received_events_url":"https://api.github.com/users/elpinjo/received_events","type":"User","site_admin":false},"created_at":"2017-09-17T19:45:17Z","updated_at":"2017-09-17T19:45:17Z","author_association":"NONE","body":"Explicitly setting the version in gradle.properties works, however, this version will not endup in my OSGI bundles as bnd uses its version from the workspace.\r\nI'm trying to get these to link together, but don't know how yet as my experience is lacking a bit in the field of bnd and gradle."}}
{"actor":{"display_login":"elpinjo"}}