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 13 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320
  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.3.
  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. The level of bugs reported can delay things. Generally, give a few
  14. weeks to "close" the source tree to further changes so people can
  15. finalise contributions, etc. At this time, the first beta will be
  16. cut and there will be then a period of beta testing, usually 1
  17. month but this should be flexible.
  18. 2. Note that any mention of a deadline causes a flood of bug fixes, new tasks,
  19. etc. This needs to be managed as best it can. Some fixes will be applied,
  20. others held over. Make this clear in the release plan. The committers and
  21. particularly the release manager will need to make judgement calls here.
  22. Anything too "big" is likely to be held over.
  23. 3. We used until Ant 1.6 to create branches, for instance ANT_16_BRANCH
  24. to allow parallel development on trunk and on the current branch.
  25. In the case of parallel development on a branch and on trunk, the project
  26. version would be x.y+1 on trunk and x.y on the branch, for instance 2.0.alpha on trunk
  27. and 1.9.xbeta on the branch.
  28. For more information on performing branching and merging, please visit
  29. http://svnbook.red-bean.com/nightly/en/svn-book.html
  30. 4. Before a build :
  31. the project.version property in build.xml governs the output of
  32. ant -version and the naming of the distribution files.
  33. Update the following files for version number:
  34. see at the end of this document the list of files containing version information
  35. 5. Ensure you have all the external libraries that Ant uses in your
  36. lib/optional directory. All dependencies are either provided by
  37. JDK 1.5.0 or downloadable using
  38. ant -f fetch.xml -Ddest=optional.
  39. To find out whether you have all the libraries you need, execute
  40. the build with -verbose option and scan for lines beginning with
  41. "Unable to load...".
  42. 6. Make sure that your directory tree is clean by running svn status.
  43. Some tests leave behind leftovers which end up in the source
  44. distribution otherwise.
  45. 7. Next bootstrap, build and run the tests. Then build the distribution
  46. on the branch. It is important that this be a clean build. Label this with
  47. a tag ANT_193.
  48. The file release.sh gives an idea of how to do this build process.
  49. buid.xml specifies that the code should be compiled with source=1.5 and target=1.5.
  50. svn copy https://svn.apache.org/repos/asf/ant/core/trunk \
  51. https://svn.apache.org/repos/asf/ant/core/tags/ANT_193 \
  52. -m "Tagging version 1.9.3 of Ant"
  53. 8. Sign the distribution files using the script release/signit.xml
  54. This script requires using commons-openpgp to sign the artefacts,
  55. This tool can be checked out from
  56. http://svn.apache.org/repos/asf/commons/sandbox/openpgp/trunk
  57. You have to build it using maven
  58. You can create a property file .gnupg.properties in your home directory
  59. with your key id
  60. and pass your key passphrase on the command line with -Dpassword=****
  61. Before you do that, ensure that the key you use is inside the KEYS
  62. file in Ant's SVN repository
  63. <https://svn.apache.org/repos/asf/ant/antlibs/common/trunk/KEYS> -
  64. and that you copy the KEYS file to
  65. /www/www.apache.org/dist/ant
  66. Also make sure you have sent the key that you use to a public
  67. keyserver.
  68. 9. Convert the part of the WHATSNEW file covering the changes
  69. since the last release into HTML for the README file on the
  70. website. See the previous release directories for examples of these files.
  71. Add instructions and warnings (GNU tar format issues, etc).
  72. Use the target txt2html of docs.xml
  73. This target generates a file build/html/WHATSNEW.html
  74. Add an html head element with a title like "Release Notes of Apache Ant
  75. 1.9.3" (from the default txt2html)
  76. Cut all sections about previous releases to keep only the current release,
  77. and save as RELEASE-NOTES-1.9.3.html inside the distribution folder.
  78. Copy the file RELEASE-NOTES-1.9.3.html also as README.html
  79. 10. The distribution is now ready to go.
  80. Create a SVN sandbox on your computer with https://dist.apache.org/repos/dist/dev/ant in it
  81. Copy the distribution folder to the location of the sandbox.
  82. svn add the files and commit into https://dist.apache.org/repos/dist/dev/ant
  83. 11. * upload the maven artifacts located under java-repository/org/apache/ant
  84. these artifacts comprise currently for each ant jar of one POM file, the corresponding jar file
  85. and the corresponding GPG signatures (x.pom, x.jar, x.pom.asc, x.jar.asc)
  86. MD5 and SHA1 are generated by ivy during the upload
  87. to
  88. https://repository.apache.org (nexus repository)
  89. using the build file release/upload.xml
  90. ant -Dupload.user=foo -Dupload.password=secret -lib location_of_ivy_jar -f upload.xml
  91. * after the upload, you need to access the web interface of nexus under https://repository.apache.org
  92. login using your Apache credentials
  93. in the left pane, below "build promotion", click on the "Stagings Repositories" links
  94. expand org.apache.ant
  95. select the checkbox next to the upload that you just did
  96. click the button "Close" on the top of the table listing the uploads
  97. make a note of the location of the staging repository for the vote email
  98. 12. Once this is committed send a release vote email on dev@ant.
  99. The email will typically mention :
  100. - the SVN tag for the release including revision number,
  101. - the location of the tarballs, including revision number in dist.apache.org repository
  102. - the URL for the maven artifacts
  103. The vote will only pass if at least three PMC members have voted +1
  104. and more +1s than -1s have been cast. The vote will run for 3 days.
  105. 13. Update the files listed at the end of the document (files containing
  106. version information) to prepare the development of the next version of Ant
  107. 14. Once the vote has passed, the distrib artifacts should be published the
  108. apache dist. It is managed via svnpubsub so the release should be
  109. committed to the subversion repository
  110. https://dist.apache.org/repos/dist/release/ant/.
  111. In order to keep the main dist area of a reasonable size, old releases
  112. should be removed. They will disapear from the main dist but will still be
  113. available via the archive. To do so, just use the "svn rm" command against
  114. the artifacts or folders to remove.
  115. 15. Address the available version tags in BugZilla. Create a new version 1.9.4.
  116. Assign all existing 1.9.3 bugs to 1.9.4.
  117. Note that such massive changes can be done at once by choosing the
  118. link "Change several bugs at once" at the bottom of the bug list
  119. displaying the 1.9.3 bugs.
  120. 16. Once that is done, do a test download to make sure everything is OK. A
  121. common problem may be:
  122. * the file's mime type is not recognized and is interpreted as
  123. text/plain. Fix it by using some .htaccess magic (AddEncoding stuff)
  124. * Your gz.asc files are not being displayed properly (RemoveEncoding stuff)
  125. If it looks OK, announce it on dev@ant and user@ant. After a few
  126. days pass and there are no major problems, a wider announcement is
  127. made (ant website, announce@apache.org, etc).
  128. Announce beta releases at freecode.com (Stefan Bodewig is the
  129. owner of Ant's project entry - bug him ;-).
  130. 17. As problems in the beta are discovered, there may be a need for
  131. one or more subsequent betas. The release manager makes this
  132. call. Each time, the versions are updated and the above process is
  133. repeated. Try not to have too many betas.
  134. 18. Try to advertise the need for testing of the betas as much as possible.
  135. This would eliminate the need to release minor patch versions like
  136. we had to do when releasing Ant 1.4.
  137. 19. When the final beta is considered OK, propose a vote on dev@ant to
  138. officially adopt the latest beta as the Ant 1.6 release. If it is passed,
  139. (it usually does,) this would be labelled ANT_16 and built in a similar
  140. fashion to the above process.
  141. It is probably a good idea to have the re-labeled distribution
  142. files ready in time for the vote so that no additional vote on the
  143. actual package is required later.
  144. 20. This time you'll have to do some house-keeping for the old
  145. release:
  146. * commit the new release files to
  147. from distribution
  148. to https://dist.apache.org/repos/dist/release/ant/[source|binaries|manual].
  149. * release the maven artifacts using the web interface of nexus under https://repository.apache.org
  150. login using your Apache credentials
  151. in the left pane, below "build promotion", click on the "Stagings Repositories" links
  152. expand org.apache.ant
  153. select the checkbox next to the upload that you just did
  154. and click the button "Release".
  155. 4 hours later, the artefacts will be in the maven central repository.
  156. * Make README.html points to the new RELEASE-NOTES or is a copy of
  157. it.
  158. (*)
  159. 21. Update the ant.apache.org site :
  160. The website is managed here: https://svn.apache.org/repos/asf/ant/site/ant/
  161. Update the following files for version number:
  162. * source/antnews.xml (Announcement)
  163. * source/faq.xml (Ant's history details - not for betas)
  164. * source/index.xml (Announcement, latest release details, link to
  165. manual under "Documentation")
  166. * source/srcdownload.xml
  167. * source/bindownload.xml
  168. * source/manualdownload.xml
  169. Generate the html files by invoking 'ant'
  170. Commit the modified/generated files in the 'production' folder, it will go
  171. live on ant.apache.org in a matter on seconds.
  172. Change the version of the manual published on the site: svn copy the manual into
  173. the production folder, using a command similar to :
  174. svn merge https://svn.apache.org/repos/asf/ant/core/tags/ANT_193/manual/ ./manual/
  175. followed by a commit.
  176. 22. Clean up.
  177. * remove the remaining files of the previous release and betas from
  178. https://dist.apache.org/repos/dist/release/ant/[source|binaries|manual].
  179. This includes the old release notes.
  180. (+)
  181. 23. Now and perhaps during previous betas any changes on the branch must
  182. be merged back into the tree.
  183. 24. At this point in time, the release is done and announcements are made.
  184. PGP-sign your announcement posts.
  185. Apache mailing lists that should get the announcements:
  186. announce@apache.org, dev@ant and user@ant.
  187. Announce release at freecode.com
  188. (Stefan Bodewig is the owner of Ant's project entry - bug him ;-).
  189. 25. Add a new release tag to doap_Ant.rdf in Ant's site.
  190. 26. You can now reacquaint yourself with your family and friends.
  191. (*) Mirrors : the srcdownload.html, bindownload.html and
  192. manualdownload.html each list a number of mirrors. For ant 1.6.0
  193. the mirrors picked up the new version in 8 hours or less, the
  194. release having been done at midnight on Dec 18th, the mirrors had
  195. it on Dec 19th at 8 am. The
  196. srcdownload/bindownload/manualdownload pages all contain a note
  197. advising users to be patient immediately after the release.
  198. (+) Don't expect the old releases to disappear from
  199. www.apache.org/dist as soon as the new releases are there.
  200. The rsync process from people.a.o to www.a.o adds files once per
  201. hour but only deletes once per day.
  202. Related Information
  203. http://www.apache.org/dev/#releases
  204. http://commons.apache.org/releases/index.html
  205. http://wiki.apache.org/commons/SigningReleases
  206. Files containing version information
  207. ------------------------------------
  208. * manual/cover.html
  209. * manual/credits.html
  210. * build.xml properties : project.version,manifest-version,pom.version
  211. * POM files under src/etc/poms and subdirectories
  212. * ivy.xml in release subdirectory
  213. * WHATSNEW
  214. * src/etc/testcases/taskdefs/conditions/antversion.xml
  215. cover.html, credits.html, POM files, antversion.xml should be
  216. adjusted for the [newversion] right after the build and tagging
  217. of the release
  218. build.xml
  219. ---------
  220. right before a release :
  221. the project.version gets bumped to the exact release
  222. number, for instance 1.9.2
  223. right after a release :
  224. project.version property in build.xml gets bumped to
  225. [newversion]alpha, for example 1.9.2alpha
  226. manifest-version gets bumped to the exact next release number
  227. for example 1.9.2
  228. pom.version gets bumped to [newversion]-SNAPSHOT