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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  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. 6. Make sure that your directory tree is clean by running git status.
  37. Some tests leave behind leftovers which end up in the source
  38. distribution otherwise.
  39. 7. Next bootstrap, build and run the tests. Then build the
  40. distribution on the branch. It is important that this be a clean
  41. build. Tag this with a tag ANT_195_RC1.
  42. The file release.sh gives an idea of how to do this build process.
  43. build.xml specifies that the code should be compiled with
  44. source=1.5 and target=1.5.
  45. git tag -s -m "Tagging RC1 for version 1.9.5 of Ant" ANT_195_RC1
  46. git push --tags
  47. 8. Sign the distribution files using the script release/signit.xml
  48. This script requires using commons-openpgp to sign the artefacts,
  49. This tool can be checked out from
  50. http://svn.apache.org/repos/asf/commons/sandbox/openpgp/trunk
  51. You have to build it using maven
  52. You can create a property file .gnupg.properties in your home directory
  53. with your key id
  54. and pass your key passphrase on the command line with -Dpassword=****
  55. Before you do that, ensure that the key you use is inside the KEYS
  56. file in Ant's git repository
  57. <https://git-wip-us.apache.org/repos/asf?p=ant-antlibs-common.git;a=blob;f=KEYS;h=dc62b011b1b429bd6de913f8f2bce79b715f96db;hb=HEAD> -
  58. and that you copy the KEYS file to
  59. /www/www.apache.org/dist/ant
  60. Also make sure you have sent the key that you use to a public
  61. keyserver.
  62. 9. Convert the part of the WHATSNEW file covering the changes
  63. since the last release into HTML for the README file on the
  64. website. See the previous release directories for examples of these files.
  65. Add instructions and warnings (GNU tar format issues, etc).
  66. Use the target txt2html of docs.xml
  67. This target generates a file build/html/WHATSNEW.html
  68. Add an html head element with a title like "Release Notes of Apache Ant
  69. 1.9.5" (from the default txt2html)
  70. Cut all sections about previous releases to keep only the current release,
  71. and save as RELEASE-NOTES-1.9.5.html inside the distribution folder.
  72. Copy the file RELEASE-NOTES-1.9.5.html also as README.html
  73. 10. The distribution is now ready to go.
  74. Create a SVN sandbox on your computer with https://dist.apache.org/repos/dist/dev/ant in it
  75. Copy the distribution folder to the location of the sandbox.
  76. svn add the files and commit into https://dist.apache.org/repos/dist/dev/ant
  77. 11. Upload the maven artifacts located under java-repository/org/apache/ant
  78. these artifacts comprise currently for each ant jar of one POM
  79. file, the corresponding jar file and the corresponding GPG
  80. signatures (x.pom, x.jar, x.pom.asc, x.jar.asc) MD5 and SHA1 are
  81. generated by ivy during the upload
  82. to
  83. https://repository.apache.org (nexus repository)
  84. using the build file release/upload.xml
  85. ant -Dupload.user=foo -Dupload.password=secret -lib location_of_ivy_jar -f upload.xml
  86. After the upload, you need to access the web interface of nexus
  87. under https://repository.apache.org login using your Apache
  88. credentials in the left pane, below "build promotion", click on
  89. the "Stagings Repositories" links expand org.apache.ant select the
  90. checkbox next to the upload that you just did click the button
  91. "Close" on the top of the table listing the uploads make a note of
  92. the location of the staging repository for the vote email
  93. 12. Once this is committed send a release vote email on dev@ant.
  94. The email will typically mention :
  95. - the git tag for the release including commit hash,
  96. - the location of the tarballs, including revision number in
  97. dist.apache.org repository
  98. - the URL for the maven artifacts
  99. The vote will only pass if at least three PMC members have voted +1
  100. and more +1s than -1s have been cast. The vote will run for 3 days.
  101. 13. Update the files listed at the end of the document (files containing
  102. version information) to prepare the development of the next
  103. version of Ant on the master branch.
  104. 14. If the vote fails, address the problems and recreate the next RC
  105. build.
  106. 15. Once the vote has passed, tag the last RC created with the final tag
  107. $ git tag -s -m "Tagging version 1.9.5 of Ant" ANT_195 HASH_OF_LAST_RC
  108. $ git push --tags
  109. 15. The distrib artifacts should be published the apache dist. It is
  110. managed via svnpubsub so the release should be committed to the
  111. subversion repository
  112. https://dist.apache.org/repos/dist/release/ant/.
  113. In order to keep the main dist area of a reasonable size, old releases
  114. should be removed. They will disapear from the main dist but will still be
  115. available via the archive. To do so, just use the "svn rm" command against
  116. the artifacts or folders to remove.
  117. * commit the new release files to
  118. https://dist.apache.org/repos/dist/release/ant/[source|binaries|manual].
  119. * release the maven artifacts using the web interface of nexus under https://repository.apache.org
  120. login using your Apache credentials
  121. in the left pane, below "build promotion", click on the "Stagings Repositories" links
  122. expand org.apache.ant
  123. select the checkbox next to the upload that you just did
  124. and click the button "Release".
  125. 4 hours later, the artefacts will be in the maven central repository.
  126. * Make README.html points to the new RELEASE-NOTES or is a copy of
  127. it.
  128. 16. Update the ant.apache.org site :
  129. The website is managed here: https://svn.apache.org/repos/asf/ant/site/ant/
  130. Update the following files for version number:
  131. * source/antnews.xml (Announcement)
  132. * source/faq.xml (Ant's history details - not for betas)
  133. * source/index.xml (Announcement, latest release details, link to
  134. manual under "Documentation")
  135. * source/srcdownload.xml
  136. * source/bindownload.xml
  137. * source/manualdownload.xml
  138. Generate the html files by invoking 'ant'
  139. Commit the modified/generated files in the 'production' folder, it will go
  140. live on ant.apache.org in a matter on seconds.
  141. Change the version of the manual published on the site: svn copy the manual into
  142. the production folder, using a command similar to :
  143. svn merge https://svn.apache.org/repos/asf/ant/core/tags/ANT_193/manual/ ./manual/
  144. followed by a commit.
  145. 17. Address the available version tags in BugZilla. Create a new version 1.9.6.
  146. Assign all existing 1.9.5 bugs to 1.9.6.
  147. Note that such massive changes can be done at once by choosing the
  148. link "Change several bugs at once" at the bottom of the bug list
  149. displaying the 1.9.5 bugs.
  150. 18. At this point in time, the release is done and announcements are made.
  151. PGP-sign your announcement posts.
  152. Apache mailing lists that should get the announcements:
  153. announce@apache.org, dev@ant and user@ant.
  154. 19. Add a new release tag to doap_Ant.rdf in Ant's site.
  155. 20. 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