Skip to content

Commit 27bfd8b

Browse files
committed
Blowdryer-ed the OSGi.
2 parents 726b196 + 01ac831 commit 27bfd8b

File tree

2 files changed

+4
-18
lines changed

2 files changed

+4
-18
lines changed

build.gradle

+2-18
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ subprojects { subProject ->
3232
options.linksOffline 'https://help.eclipse.org/2019-12/topic/org.eclipse.platform.doc.isv/reference/api/', rootProject.file('gradle/javadoc-eclipse').absolutePath
3333
}
3434

35+
apply from: 干.file('base/osgi.gradle')
36+
3537
if (subProject.name == 'durian-swt') {
3638
// configured there
3739
} else if (subProject.name == 'durian-swt.os') {
@@ -64,22 +66,4 @@ subprojects { subProject ->
6466
'Eclipse-PlatformFilter': swtPlatform.platformFilter(),
6567
)
6668
}
67-
68-
//////////
69-
// OSGI //
70-
//////////
71-
apply plugin: 'com.diffplug.gradle.osgi.bndmanifest'
72-
osgiBndManifest {
73-
copyTo 'src/main/resources/META-INF/MANIFEST.MF'
74-
}
75-
jar.manifest.attributes (
76-
'Export-Package': 'com.diffplug.common.swt.*',
77-
'Bundle-SymbolicName': 'com.diffplug.durian.swt',
78-
'Bundle-RequiredExecutionEnvironment': 'JavaSE-1.8',
79-
'Bundle-Vendor': 'DiffPlug',
80-
'Bundle-DocURL': "https://github.com/diffplug/durian-swt",
81-
'Bundle-License': "https://github.com/diffplug/durian-swt/blob/v${project.version}/LICENSE",
82-
'-removeheaders': 'Bnd-LastModified,Bundle-Name,Created-By,Tool',
83-
'-nodefaultversion': 'true'
84-
)
8569
}

gradle.properties

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ git_url=https://github.com/diffplug/durian-swt
22
license=apache
33
maven_group=com.diffplug.durian
44
maven_desc=DurianSwt - Reactive utilities and fluent builders for SWT
5+
osgi_symbolic_name=com.diffplug.durian.swt
6+
osgi_export=com.diffplug.common.swt.*
57

68
# Build requirements
79
VER_JAVA=1.8

0 commit comments

Comments
 (0)