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 4ed8006e5a
commit b4ab20a97b
1 changed files with 4 additions and 1 deletions

View File

@ -73,6 +73,9 @@ subprojects { subProject ->
group = 'org.hibernate' group = 'org.hibernate'
version = rootProject.hibernateTargetVersion version = rootProject.hibernateTargetVersion
// 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).. // minimize changes, at least for now (gradle uses 'build' by default)..
buildDir = "target" buildDir = "target"
@ -232,7 +235,7 @@ subprojects { subProject ->
privatePackages.add( packageName ); privatePackages.add( packageName );
} }
else { else {
exportPackages.add( packageName ); exportPackages.add( packageName + ";version=\"" + exportPackageVersion + "\"" );
} }
} }
} }