File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,10 @@ subprojects { subProject ->
52
52
53
53
group = ' org.hibernate'
54
54
version = ' 4.2.3-SNAPSHOT'
55
+
56
+ // The OSGi manifest exported package versions need to be only the numerical release -- no "SNAPSHOT" or "Final"
57
+ exportPackageVersion = version. replaceAll(" -SNAPSHOT" , " " );
58
+ exportPackageVersion = exportPackageVersion. replaceAll(" .Final" , " " );
55
59
56
60
// minimize changes, at least for now (gradle uses 'build' by default)..
57
61
buildDir = " target"
@@ -182,7 +186,7 @@ subprojects { subProject ->
182
186
privatePackages. add( packageName );
183
187
}
184
188
else {
185
- exportPackages . add( packageName );
189
+ exportPackages . add( packageName + " ;version= \" " + exportPackageVersion + " \" " );
186
190
}
187
191
}
188
192
}
You can’t perform that action at this time.
0 commit comments