You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by pd...@apache.org on 2015/06/12 00:41:04 UTC

svn commit: r1684996 - in /felix/trunk/dependencymanager/release: README.release build.gradle

Author: pderop
Date: Thu Jun 11 22:41:04 2015
New Revision: 1684996

URL: http://svn.apache.org/r1684996
Log:
FELIX-4921: Ensure binary equality of the same bundle between successive DM releases.
Now, before making a release, the bundles that has been really modified have to be released using the
bndtools "Release Workspace Bundles..." menu, and the releaserepo will then be used by the gradle script
when generating the staging repository.


Modified:
    felix/trunk/dependencymanager/release/README.release
    felix/trunk/dependencymanager/release/build.gradle

Modified: felix/trunk/dependencymanager/release/README.release
URL: http://svn.apache.org/viewvc/felix/trunk/dependencymanager/release/README.release?rev=1684996&r1=1684995&r2=1684996&view=diff
==============================================================================
--- felix/trunk/dependencymanager/release/README.release (original)
+++ felix/trunk/dependencymanager/release/README.release Thu Jun 11 22:41:04 2015
@@ -18,10 +18,23 @@ To create a release you must:
 
 Before you can start staging a release candidate, you must:
 
-* increment the ext.dmRelease parameter in release/build.gradle, if not already done.
 * make sure there are no dependencies on snapshots/unreleased versions;
+* increment the ext.dmRelease parameter in release/build.gradle, if not already done, and commit.
+* check if release notes are up-to-date, in release/resources/changelog.txt
+* under bndtools, release (only) the bundles that needs to be released (using "Release workspace bundles" menu).
 * create a tagged version of the sources in preparation of the release candidate.
 
+Realease only the necessary bundles
+===================================
+
+Click on the bndtools "Release workspace bundles", and release the bundles that have been modified and need to be released.
+Don't release other unmodified bundles.
+Once done, under the shell prompt, svn remove the previous old released bundles, svn add the new released bundles, 
+refresh the repositories under bndtools, and commit.  
+
+Create a tagged version
+=======================
+
 Creating a tagged version of the sources can be done directly through svn (replace r<n> by the actual release number, like "r1"):
 
 svn copy https://svn.apache.org/repos/asf/felix/trunk/dependencymanager https://svn.apache.org/repos/asf/felix/releases/org.apache.felix.dependencymanager-r<n> -m "Release of Apache Felix Dependency Manager r<n>"

Modified: felix/trunk/dependencymanager/release/build.gradle
URL: http://svn.apache.org/viewvc/felix/trunk/dependencymanager/release/build.gradle?rev=1684996&r1=1684995&r2=1684996&view=diff
==============================================================================
--- felix/trunk/dependencymanager/release/build.gradle (original)
+++ felix/trunk/dependencymanager/release/build.gradle Thu Jun 11 22:41:04 2015
@@ -109,8 +109,8 @@ task makeStaging << {
     logger.lifecycle("    Packaging binary distribution.")    
     ant.zip(destfile: "staging/"+topdir+"-bin.zip") {
         ant.mappedresources() {
-            // don't include itests, samples, and benchmark in the convenience binary release.
-        	ant.fileset(dir: '..', includes: '*/generated/*.jar', excludes: '*.itest/generated/*.jar,*.benchmark/generated/*.jar,*.samples/generated/*.jar')
+            // simply include all released bundle.
+        	ant.fileset(dir: '..', includes: 'cnf/releaserepo/*/*.jar')
             ant.chainedmapper() {
                 ant.flattenmapper()
                 ant.globmapper(from: '*', to: topdir+'-bin/*')