HHH-8117 Add package export versions in OSGi manifests
This commit is contained in:
parent
b02364a737
commit
7e87c71600
|
@ -52,6 +52,10 @@ subprojects { subProject ->
|
|||
|
||||
group = 'org.hibernate'
|
||||
version = '4.2.3-SNAPSHOT'
|
||||
|
||||
// The OSGi manifest exported package versions need to be only the numerical release -- no "SNAPSHOT" or "Final"
|
||||
exportPackageVersion = version.replaceAll("-SNAPSHOT", "");
|
||||
exportPackageVersion = exportPackageVersion.replaceAll(".Final", "");
|
||||
|
||||
// minimize changes, at least for now (gradle uses 'build' by default)..
|
||||
buildDir = "target"
|
||||
|
@ -182,7 +186,7 @@ subprojects { subProject ->
|
|||
privatePackages.add( packageName );
|
||||
}
|
||||
else {
|
||||
exportPackages.add( packageName );
|
||||
exportPackages.add( packageName + ";version=\"" + exportPackageVersion + "\"" );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue