Skip to content

Commit

Permalink
HHH-8117 Add package export versions in OSGi manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
brmeyer committed Jun 7, 2013
1 parent 4ed8006 commit b4ab20a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ subprojects { subProject ->

group = 'org.hibernate'
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)..
buildDir = "target"
Expand Down Expand Up @@ -232,7 +235,7 @@ subprojects { subProject ->
privatePackages.add( packageName );
}
else {
exportPackages.add( packageName );
exportPackages.add( packageName + ";version=\"" + exportPackageVersion + "\"" );
}
}
}
Expand Down

0 comments on commit b4ab20a

Please sign in to comment.