{"action":"created","issue":{"url":"https://api.github.com/repos/lburgazzoli/gradle-karaf-plugin/issues/21","repository_url":"https://api.github.com/repos/lburgazzoli/gradle-karaf-plugin","labels_url":"https://api.github.com/repos/lburgazzoli/gradle-karaf-plugin/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/lburgazzoli/gradle-karaf-plugin/issues/21/comments","events_url":"https://api.github.com/repos/lburgazzoli/gradle-karaf-plugin/issues/21/events","html_url":"https://github.com/lburgazzoli/gradle-karaf-plugin/issues/21","id":150717712,"number":21,"title":"Support for prerequisite features","user":{"login":"yrashk","id":452,"avatar_url":"https://avatars.githubusercontent.com/u/452?v=3","gravatar_id":"","url":"https://api.github.com/users/yrashk","html_url":"https://github.com/yrashk","followers_url":"https://api.github.com/users/yrashk/followers","following_url":"https://api.github.com/users/yrashk/following{/other_user}","gists_url":"https://api.github.com/users/yrashk/gists{/gist_id}","starred_url":"https://api.github.com/users/yrashk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yrashk/subscriptions","organizations_url":"https://api.github.com/users/yrashk/orgs","repos_url":"https://api.github.com/users/yrashk/repos","events_url":"https://api.github.com/users/yrashk/events{/privacy}","received_events_url":"https://api.github.com/users/yrashk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-25T00:34:04Z","updated_at":"2016-04-28T15:15:56Z","closed_at":"2016-04-28T15:13:29Z","body":"This is something we should probably consider supporting:\r\n\r\n```xml\r\n<features xmlns=\"http://karaf.apache.org/xmlns/features/v1.4.0\" name=\"app-2.0.0\">\r\n\t<feature name=\"external-libs\" version=\"2.0.0\" description=\"External libs\">\r\n\t\t<details>External dependencies</details>\r\n\t\t<feature prerequisite=\"true\">wrap</feature>\r\n\t\t<bundle start-level=\"80\">wrap:mvn:net.sf.ehcache/ehcache-core/2.6.11$Bundle-SymbolicName=ehcache-core&amp;Bundle-Version=2.6.11</bundle>\r\n\t</feature>\r\n</features>\r\n```\r\n\r\nIt got documented in 4.0.5 https://github.com/apache/karaf/blob/6a9ca438ccf284cd5a36b2e51768172d21290110/manual/src/main/asciidoc/developer-guide/creating-bundles.adoc\r\n\r\nhttps://github.com/apache/karaf/commit/6a9ca43\r\n\r\nThoughts?"},"comment":{"url":"https://api.github.com/repos/lburgazzoli/gradle-karaf-plugin/issues/comments/215460728","html_url":"https://github.com/lburgazzoli/gradle-karaf-plugin/issues/21#issuecomment-215460728","issue_url":"https://api.github.com/repos/lburgazzoli/gradle-karaf-plugin/issues/21","id":215460728,"user":{"login":"lburgazzoli","id":1868933,"avatar_url":"https://avatars.githubusercontent.com/u/1868933?v=3","gravatar_id":"","url":"https://api.github.com/users/lburgazzoli","html_url":"https://github.com/lburgazzoli","followers_url":"https://api.github.com/users/lburgazzoli/followers","following_url":"https://api.github.com/users/lburgazzoli/following{/other_user}","gists_url":"https://api.github.com/users/lburgazzoli/gists{/gist_id}","starred_url":"https://api.github.com/users/lburgazzoli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lburgazzoli/subscriptions","organizations_url":"https://api.github.com/users/lburgazzoli/orgs","repos_url":"https://api.github.com/users/lburgazzoli/repos","events_url":"https://api.github.com/users/lburgazzoli/events{/privacy}","received_events_url":"https://api.github.com/users/lburgazzoli/received_events","type":"User","site_admin":false},"created_at":"2016-04-28T15:15:56Z","updated_at":"2016-04-28T15:15:56Z","body":"Available as v0.0.28 \r\n\r\n```groovy\r\nkaraf {\r\n    features {\r\n        feature {\r\n                feature 'dependencyFeatureName1'\r\n                feature('dependencyFeatureName2') {\r\n                    version = \"5.6.7\"\r\n                    dependency = true\r\n                }\r\n                feature('dependencyFeatureName3') {\r\n                    prerequisite = true\r\n                 }\r\n        }\r\n    }\r\n}\r\n```"}}