Skip to content

Commit daed513

Browse files
committed
Bring back OSGi support (#351)
it was accidentally dropped when switching from Maven to Gradle. Also include Git Commit SHA again in MANIFEST 'Implementation-Build' attribute.
1 parent 0ef4640 commit daed513

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

build.gradle

+19-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ plugins {
1010
id 'com.github.hexomod.macro.preprocessor' version '0.9'
1111
id 'me.champeau.jmh' version '0.7.0' apply false
1212
id 'checkstyle'
13+
id 'org.ajoberstar.grgit' version '5.2.2'
1314
}
1415
repositories {
1516
mavenCentral()
@@ -23,7 +24,7 @@ if (buildProfile == 'experimental') {
2324
}
2425

2526
group 'org.joml'
26-
version '1.10.7'
27+
version '1.10.8-SNAPSHOT'
2728

2829
configurations {
2930
buildhelper
@@ -86,6 +87,23 @@ if (buildProfile == 'default') {
8687
compileJava.finalizedBy(java6to2, moduleInfoGenerator)
8788
}
8889

90+
jar {
91+
manifest {
92+
attributes(
93+
'Created-By': 'Gradle',
94+
'Implementation-Title': 'JOML',
95+
'Implementation-Version': version,
96+
'Implementation-Vendor': 'JOML',
97+
'Bundle-ManifestVersion': '2',
98+
'Bundle-Name': 'JOML',
99+
'Bundle-SymbolicName': 'org.joml',
100+
'Bundle-Version': version,
101+
'Export-Package': 'org.joml,org.joml.sampling',
102+
'Implementation-Build': grgit.head().id,
103+
)
104+
}
105+
}
106+
89107
nexusPublishing {
90108
repositories {
91109
sonatype()

0 commit comments

Comments
 (0)