Debian Codegraph @

src/installer/release.txt

raw
1 # Checklist for a release
2
3 ## Formatting, Spellchecking, Javadocs
4
5 git pull
6
7 Do this until there are no errors.
8 Fix typos, add new words to dictionary.txt:
9
10 ./build.sh clean compile spellcheck
11
12 Add documentation for all public methods. Make methods private if possible:
13
14 ./build.sh clean compile javadocImpl
15
16 Ensure lines are not overly long:
17
18 ./build.sh clean compile docs
19
20 ## MVStore Jar File Size Verification
21
22 To ensure the MVStore jar file is not too large
23 (does not reference the database code by accident).
24 The file size should be about 300 KB:
25
26 ./build.sh jarMVStore
27
28 ## Changing Version Numbers
29
30 Update org.h2.engine.Constants.java:
31 change the version and build number:
32 set BUILD_DATE to today
33 increment BUILD_ID, the value must be even (for example, 202)
34 set VERSION_MAJOR / VERSION_MINOR to the new version number
35 if the last TCP_PROTOCOL_VERSION_##
36 doesn't have a release date set it to current BUILD_DATE
37 check and update if necessary links to the latest releases in previous
38 series of releases and their checksums in download.html
39
40 Update README.md.
41 set version to the new version
42
43 Update changelog.html:
44 * create a new "Next Version (unreleased)" with an empty list
45 * add a new version
46 * remove change log entries of the oldest version (keeping about 500 lines)
47
48 Update newsfeed.sql:
49 * add new version, for example:
50 * (150, '1.4.200', '2019-10-14'),
51 * remove oldest entry in that list
52
53 Update download-archive.html:
54 * add new version under Distribution section
55
56 ## Skipped
57
58 * Minor version change: change sourceError.html and source.html
59 * If a beta, change download.html: Version ${version} (${versionDate}), Beta
60 * If a beta, change mainWeb.html: Version ${version} (${versionDate}), Beta
61
62 The following can be skipped currently; benchmarks should probably be removed:
63 * To update benchmark data: use latest versions of other dbs, change version(s) in performance.html
64
65 ## Build the Release
66
67 In Build.java, comment "-Xdoclint:...", but don't commit that change.
68
69 Run the following commands:
70 Non-Windows:
71
72 cd src/installer
73 ./buildRelease.sh
74
75 Windows:
76
77 cd src/installer
78 buildRelease.bat
79
80 Scan for viruses.
81
82 Test installer, H2 Console (test new languages).
83
84 Check docs, versions and links in main, downloads, build numbers.
85
86 Check the PDF file size.
87
88 Upload (<x> = httpdocs and httpsdocs) to ftp://h2database.com/<x>/javadoc
89 Upload (<x> = httpdocs and httpsdocs) to ftp://h2database.com/<x>/
90 Upload (<x> = httpdocs and httpsdocs) to ftp://h2database.com/<x>/m2-repo
91
92 Github: create a release.
93
94 Newsletter: send (always to BCC!), the following:
95
96 [email protected]; [email protected]; ...
97
98 Create tweet at http://twitter.com
99
100 ## Sign files and publish files on Maven Central
101
102 In Build.java, comment "-Xdoclint:none", but don't commit that change.
103
104 ./build.sh clean compile jar mavenDeployCentral
105 cd /data/h2database/m2-repo/com/h2database
106 # remove sha and md5 files:
107 find . -name "*.sha1" -delete
108 find . -name "*.md5" -delete
109 cd h2/1<latest>
110 # for each file separately (-javadoc.jar, -sources.jar, .jar, .pom):
111 gpg -u "Thomas Mueller Graf <[email protected]>" -ab h2-<...>
112 jar -cvf bundle.jar h2-*
113 cd ../../h2-mvstore/1<latest>
114 # for each file separately (-javadoc.jar, -sources.jar, .jar, .pom):
115 gpg -u "Thomas Mueller Graf <[email protected]>" -ab h2-mvstore<...>
116 jar -cvf bundle.jar h2-*
117 # http://central.sonatype.org/pages/ossrh-guide.html
118 # http://central.sonatype.org/pages/manual-staging-bundle-creation-and-deployment.html
119 # https://oss.sonatype.org/#welcome - Log In "t..."
120 # sometimes this doesn't work reliably and you will have to retry
121 # - Staging Upload
122 # - Upload Mode: Artifact Bundle, Select Bundle to Upload... - /data/h2database/.../h2/.../bundle.jar
123 # - Upload Bundle
124 # - Staging Repositories - Refresh - select comh2database-<...> - Release - Confirm
125 # - Staging Upload
126 # - Upload Mode: Artifact Bundle, Select Bundle to Upload... - /data/h2database/.../h2-mvstore/.../bundle.jar
127 # - Upload Bundle
128 # - Staging Repositories - Refresh - select comh2database-<...> - Release - Confirm
129
130 Update statistics.
131
132 Change version in pom.xml, commit, add version-*.*.*** tag.
133
134 Update org.h2.engine.Constants.java:
135 increment BUILD_ID again, the value must be odd (for example, 203)
136 Update h2/pom.xml.
137 set ...-SNAPSHOT to the next version (with this odd third number)
138 Commit.