forked from stevewedig/blog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrelease_howto.txt
70 lines (49 loc) · 2.22 KB
/
release_howto.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
================================================================================
publishing project to maven central
================================================================================
1. read this:
http://central.sonatype.org/pages/ossrh-guide.html
2. fill in pom.xml
3. fill in ~/.m2/settings.xml with your credentials
4. setup pgp on your machine:
https://docs.sonatype.org/display/Repository/How+To+Generate+PGP+Signatures+With+Maven
5. deploy snapshot (optional but trying a dry run makes sense to me)
mvn clean deploy
6. verify that snapshot showed up here:
https://oss.sonatype.org/content/repositories/snapshots/
(at first mine wouldn't show up until I added -SNAPSHOT to my version in pom.xml)
7. release to staging
mvn release:clean
mvn release:prepare -Darguments=-Dgpg.passphrase=<PGP_PASSPHRASE>
mvn release:perform -Darguments=-Dgpg.passphrase=<PGP_PASSPHRASE>
8. login at https://oss.sonatype.org/index.html#stagingRepositories
9. "close" the staging repository
10. check under "activity" to see whether the repository passed verification (click "refresh" until the process completes)
11. if it closed successfully, "release" the repository
12. wait 2 hours and it should show up in Maven Central
http://search.maven.org/
================================================================================
after releasing..
publish javadocs to github
================================================================================
cp -r target/apidocs /tmp
git fetch origin
git checkout gh-pages
rm -rf apidocs
mv /tmp/apidocs .
git add apidocs
git commit -m 'new api docs'
git push
git checkout master
https://help.github.com/articles/user-organization-and-project-pages
http://assylias.wordpress.com/2013/01/06/upload-javadoc-to-github/
http://stackoverflow.com/a/15364790
http://stackoverflow.com/a/3943515
================================================================================
once the version shows up in Maven central...
http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22blog%22
================================================================================
update version depended on by clients
update the current version in README.md
- In the Maven dependency snippet
- In the Maven artifact page link