Skip to content

Commit be1750e

Browse files
committed
Add OSGi features file
1 parent 6bc9705 commit be1750e

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

build.gradle

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ ext {
4242
apiguardianVersion = '1.0.0'
4343

4444
/* OSGi */
45+
camelVersionRange = '[2.16,3)'
4546
projectOsgiVersion = project.version.replaceAll("-SNAPSHOT", ".SNAPSHOT")
4647
}
4748

@@ -112,10 +113,10 @@ task javadocJar(type: Jar) {
112113
artifacts {
113114
archives javadocJar
114115
archives sourceJar
115-
//archives (file('build/resources/main/features.xml')) {
116-
//classifier 'features'
117-
//type 'xml'
118-
//}
116+
archives (file('build/resources/main/features.xml')) {
117+
classifier 'features'
118+
type 'xml'
119+
}
119120
}
120121

121122
jacoco {

src/main/resources/features.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version='1.0' encoding='UTF-8'?>
2+
<features xmlns="http://karaf.apache.org/xmlns/features/v1.4.0" name="camel-ldp-${project.version}">
3+
<feature name="camel-ldp" version="${project.version}">
4+
<details>Installs the camel-ldp module</details>
5+
6+
<feature version="${camelVersionRange}">camel</feature>
7+
8+
<bundle>mvn:org.trellisldp.camel/camel-ldp/${project.version}</bundle>
9+
</feature>
10+
</features>

0 commit comments

Comments
 (0)