You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

ReleaseInstructions 11 kB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  1. Instructions for making a Release:
  2. Authors: Conor MacNeill
  3. Stefan Bodewig
  4. Magesh Umasankar
  5. Antoine Levy-Lambert
  6. Note: This document was updated in the context of releasing Ant 1.9.5.
  7. Please interpret the branch names, tags, etc. according to
  8. your context.
  9. 1. Propose a release plan for vote. This should set out the timetable for
  10. the release under ideal circumstances.
  11. The issue of whether to create a branch for the release should be
  12. discussed in the release vote.
  13. 2. We used until Ant 1.6 to create branches, for instance ANT_16_BRANCH
  14. to allow parallel development on master and on the current branch.
  15. Given the slow development speed we've reached with 1.9.x this
  16. doesn't seem to be necessary anymore.
  17. For more information on performing branching and merging, please visit
  18. http://git-scm.com/book/en/v2/Git-Branching-Branches-in-a-Nutshell
  19. 3. Before a build :
  20. the project.version property in build.xml governs the output of
  21. ant -version and the naming of the distribution files.
  22. Update the following files for version number:
  23. see at the end of this document the list of files containing
  24. version information
  25. 4. Ensure you have all the external libraries that Ant uses in your
  26. lib/optional directory. All dependencies are either provided by
  27. JDK 1.5.0 or downloadable using
  28. ant -f fetch.xml -Ddest=optional.
  29. To find out whether you have all the libraries you need, execute
  30. the build with -verbose option and scan for lines beginning with
  31. "Unable to load...".
  32. 5. Create a branch just for the release, even if you've decided to
  33. not work with long lived branches in step 2. This branch can be
  34. removed after the release.
  35. Switch to that branch.
  36. $ git checkout -b prepare_Ant_1.9.5
  37. 6. Make sure that your directory tree is clean by running git status.
  38. Some tests leave behind leftovers which end up in the source
  39. distribution otherwise.
  40. 7. Next bootstrap, build and run the tests. Then build the
  41. distribution on the branch. It is important that this be a clean
  42. build. Tag this with a tag ANT_195_RC1.
  43. The file release.sh gives an idea of how to do this build process.
  44. build.xml specifies that the code should be compiled with
  45. source=1.5 and target=1.5.
  46. git tag -s -m "Tagging RC1 for version 1.9.5 of Ant" ANT_195_RC1
  47. git push --tags
  48. 8. Sign the distribution files using the script release/signit.xml
  49. This script requires using commons-openpgp to sign the artefacts,
  50. This tool can be checked out from
  51. http://svn.apache.org/repos/asf/commons/sandbox/openpgp/trunk
  52. You have to build it using maven
  53. You can create a property file .gnupg.properties in your home directory
  54. with your key id
  55. and pass your key passphrase on the command line with -Dpassword=****
  56. Before you do that, ensure that the key you use is inside the KEYS
  57. file in Ant's git repository
  58. <https://git-wip-us.apache.org/repos/asf?p=ant-antlibs-common.git;a=blob;f=KEYS;h=dc62b011b1b429bd6de913f8f2bce79b715f96db;hb=HEAD> -
  59. and that you copy the KEYS file to
  60. /www/www.apache.org/dist/ant
  61. Also make sure you have sent the key that you use to a public
  62. keyserver.
  63. 9. Convert the part of the WHATSNEW file covering the changes
  64. since the last release into HTML for the README file on the
  65. website. See the previous release directories for examples of these files.
  66. Add instructions and warnings (GNU tar format issues, etc).
  67. Use the target txt2html of docs.xml
  68. This target generates a file build/html/WHATSNEW.html
  69. Add an html head element with a title like "Release Notes of Apache Ant
  70. 1.9.5" (from the default txt2html)
  71. Cut all sections about previous releases to keep only the current release,
  72. and save as RELEASE-NOTES-1.9.5.html inside the distribution folder.
  73. Copy the file RELEASE-NOTES-1.9.5.html also as README.html
  74. 10. The distribution is now ready to go.
  75. Create a SVN sandbox on your computer with https://dist.apache.org/repos/dist/dev/ant in it
  76. Copy the distribution folder to the location of the sandbox.
  77. svn add the files and commit into https://dist.apache.org/repos/dist/dev/ant
  78. 11. Upload the maven artifacts located under java-repository/org/apache/ant
  79. these artifacts comprise currently for each ant jar of one POM
  80. file, the corresponding jar file and the corresponding GPG
  81. signatures (x.pom, x.jar, x.pom.asc, x.jar.asc) MD5 and SHA1 are
  82. generated by ivy during the upload
  83. to
  84. https://repository.apache.org (nexus repository)
  85. using the build file release/upload.xml
  86. ant -Dupload.user=foo -Dupload.password=secret -lib location_of_ivy_jar -f upload.xml
  87. After the upload, you need to access the web interface of nexus
  88. under https://repository.apache.org login using your Apache
  89. credentials in the left pane, below "build promotion", click on
  90. the "Stagings Repositories" links expand org.apache.ant select the
  91. checkbox next to the upload that you just did click the button
  92. "Close" on the top of the table listing the uploads make a note of
  93. the location of the staging repository for the vote email
  94. 12. Once this is committed send a release vote email on dev@ant.
  95. The email will typically mention :
  96. - the git tag for the release including commit hash,
  97. - the location of the tarballs, including revision number in
  98. dist.apache.org repository
  99. - the URL for the maven artifacts
  100. The vote will only pass if at least three PMC members have voted +1
  101. and more +1s than -1s have been cast. The vote will run for 3 days.
  102. 13. Update the files listed at the end of the document (files containing
  103. version information) to prepare the development of the next
  104. version of Ant on the master branch.
  105. 14. If the vote fails, address the problems and recreate the next RC
  106. build.
  107. 15. Once the vote has passed, tag the last RC created with the final tag
  108. $ git tag -s -m "Tagging version 1.9.5 of Ant" ANT_195 HASH_OF_LAST_RC
  109. $ git push --tags
  110. 15. The distrib artifacts should be published the apache dist. It is
  111. managed via svnpubsub so the release should be committed to the
  112. subversion repository
  113. https://dist.apache.org/repos/dist/release/ant/.
  114. In order to keep the main dist area of a reasonable size, old releases
  115. should be removed. They will disapear from the main dist but will still be
  116. available via the archive. To do so, just use the "svn rm" command against
  117. the artifacts or folders to remove.
  118. * commit the new release files to
  119. https://dist.apache.org/repos/dist/release/ant/[source|binaries|manual].
  120. * release the maven artifacts using the web interface of nexus under https://repository.apache.org
  121. login using your Apache credentials
  122. in the left pane, below "build promotion", click on the "Stagings Repositories" links
  123. expand org.apache.ant
  124. select the checkbox next to the upload that you just did
  125. and click the button "Release".
  126. 4 hours later, the artefacts will be in the maven central repository.
  127. * Make README.html point to the new RELEASE-NOTES or is a copy of
  128. it.
  129. 16. Update the ant.apache.org site :
  130. The website is managed here: https://svn.apache.org/repos/asf/ant/site/ant/
  131. Update the following files for version number:
  132. * source/antnews.xml (Announcement)
  133. * source/faq.xml (Ant's history details - not for betas)
  134. * source/index.xml (Announcement, latest release details, link to
  135. manual under "Documentation")
  136. * source/srcdownload.xml
  137. * source/bindownload.xml
  138. * source/manualdownload.xml
  139. Generate the html files by invoking 'ant'
  140. Commit the modified/generated files in the 'production' folder, it will go
  141. live on ant.apache.org in a matter on seconds.
  142. Change the version of the manual published on the site: copy the manual into
  143. the production folder - since the site still uses svn and Ant
  144. proper uses git there currently is no way to use the scm for this.
  145. 17. Address the available version tags in BugZilla. Create new
  146. milestones and versions 1.9.6.
  147. Assign all existing 1.9.5 bugs to 1.9.6.
  148. Note that such changes can be done at once by choosing the
  149. link "Change several bugs at once" at the bottom of the bug list
  150. displaying the 1.9.5 bugs.
  151. 18. At this point in time, the release is done and announcements are made.
  152. PGP-sign your announcement posts.
  153. Apache mailing lists that should get the announcements:
  154. announce@apache.org, dev@ant and user@ant.
  155. 19. Add a new release tag to doap_Ant.rdf in Ant's site.
  156. Add a new release at https://reporter.apache.org/
  157. 20. If you've created a temporary branch you can delete it now.
  158. 21. You can now reacquaint yourself with your family and friends.
  159. (*) Mirrors : the srcdownload.html, bindownload.html and
  160. manualdownload.html each list a number of mirrors. For ant 1.6.0
  161. the mirrors picked up the new version in 8 hours or less, the
  162. release having been done at midnight on Dec 18th, the mirrors had
  163. it on Dec 19th at 8 am. The
  164. srcdownload/bindownload/manualdownload pages all contain a note
  165. advising users to be patient immediately after the release.
  166. (+) Don't expect the old releases to disappear from
  167. www.apache.org/dist as soon as the new releases are there.
  168. The rsync process from people.a.o to www.a.o adds files once per
  169. hour but only deletes once per day.
  170. Related Information
  171. http://www.apache.org/dev/#releases
  172. http://commons.apache.org/releases/index.html
  173. http://wiki.apache.org/commons/SigningReleases
  174. Files containing version information
  175. ------------------------------------
  176. * manual/cover.html
  177. * manual/credits.html
  178. * build.xml properties : project.version,manifest-version,pom.version
  179. * POM files under src/etc/poms and subdirectories
  180. * ivy.xml in release subdirectory
  181. * WHATSNEW
  182. * src/etc/testcases/taskdefs/conditions/antversion.xml
  183. cover.html, credits.html, POM files, antversion.xml should be
  184. adjusted for the [newversion] right after the build and tagging
  185. of the release
  186. build.xml
  187. ---------
  188. right before a release :
  189. the project.version gets bumped to the exact release
  190. number, for instance 1.9.5
  191. right after a release :
  192. project.version property in build.xml gets bumped to
  193. [newversion]alpha, for example 1.9.6alpha
  194. manifest-version gets bumped to the exact next release number
  195. for example 1.9.6
  196. pom.version gets bumped to [newversion]-SNAPSHOT