-
Notifications
You must be signed in to change notification settings - Fork 12
/
build.gradle
37 lines (32 loc) · 937 Bytes
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
plugins {
id 'java'
id 'com.athaydes.osgi-run'
id "biz.aQute.bnd.builder" version "6.1.0"
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.osgi:org.osgi.core:6.0.0'
implementation 'org.apache.pdfbox:pdfbox:1.8.6'
}
jar {
bundle {
bnd( "Bundle-Name": "PdfBox Example",
"Bundle-Vendor": "Renato Athaydes",
"Bundle-Description": "Using non-bundle in OSGi Example",
'Bundle-Activator': 'com.athaydes.osgirun.demo.pdfbox.PdfBoxDemo' )
}
}.doLast {
jar.manifest.writeTo( project.file( 'generated-sources/MANIFEST.MF' ) )
}
runOsgi {
bundles += project
wrapInstructions {
printManifests = true
manifest( /commons-logging.*/ ) {
instruction 'Import-Package', '!javax.servlet', '!org.apache.*', '*'
instruction 'Bundle-SymbolicName', 'org.apache.commons.logging'
}
}
}