HHH-8117 Add package export versions in OSGi manifests
This commit is contained in:
parent
4ed8006e5a
commit
b4ab20a97b
|
@ -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 + "\"" );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue