HHH-8117 Add package export versions in OSGi manifests

This commit is contained in:
Brett Meyer 2013-06-07 14:29:35 -04:00
parent b02364a737
commit 7e87c71600
1 changed files with 5 additions and 1 deletions

View File

@ -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 + "\"" );
}
}
}