Skip to content

Commit fb5467e

Browse files
committed
document release building
1 parent 521bce0 commit fb5467e

File tree

1 file changed

+34
-7
lines changed

1 file changed

+34
-7
lines changed

README.md

Lines changed: 34 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,46 @@ mvn compile
3333
mvn test
3434
```
3535

36-
## Deployment
37-
38-
TODO
39-
4036
## Contributing
4137

4238
TODO
4339
Please read [CONTRIBUTING.md](https://gist.github.com/PurpleBooth/b24679402957c63ec426) for details on our code of conduct, and the process for submitting pull requests to us.
4440

45-
## Versioning
41+
## Deployment and Versioning
4642

47-
TODO
48-
We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/your/project/tags).
43+
This part is intended for committers who are packaging a release.
44+
45+
* Check all your files are checked in
46+
* Execute "mvn clean test" to be sure all tests are passing
47+
* Update the version number in pom.xml
48+
* Update the release date in src/changes/changes.xml
49+
* Execute "mvn clean test" to be sure all tests are passing
50+
* Commit the changes
51+
52+
53+
* Build and deploy the artifacts
54+
55+
```
56+
mvn -up clean deploy
57+
```
58+
59+
* Go to [Sonatype staging repositories](https://oss.sonatype.org/index.html#stagingRepositories) and process the deploy
60+
- select the repository and close it - wait until the close is processed
61+
- release the package and wait until it is processed
62+
63+
* Create the version on Github
64+
* login to Github and open project https://github.com/HtmlUnit/htmlunit-cssparser
65+
* click Releases > Draft new release
66+
* fill the tag and title field with the release number (e.g. 1.1.0)
67+
* append
68+
* htmlunit-cssparser-1.x.x.jar
69+
* htmlunit-cssparser-1.x.x.jar.asc
70+
* htmlunit-cssparser-1.x.x-javadoc.jar
71+
* htmlunit-cssparser-1.x.x-javadoc.jar.asc
72+
* and publish the release
73+
74+
* Update the version number in pom.xml to start next snapshot development
75+
* Update the htmlunit pom to use the new release
4976

5077
## Authors
5178

0 commit comments

Comments
 (0)