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

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