Skip to content
Mikko Tommila edited this page Feb 22, 2024 · 5 revisions

Deployment notes

Release process

  • The Maven settings.xml must contain the correct snapshot and staging servers with username and (encrypted) password
  • Also gpg must be installed and the pgp keys must be set up

Snapshot deployment

Quick snapshot deploy without running tests:

mvn -am clean install javadoc:javadoc javadoc:jar source:jar deploy -DskipTests=true

Release

mvn release:clean
mvn -Darguments=-DskipTests release:prepare
mvn -Darguments=-DskipTests release:perform
  • Notice next version, is it the default or next major release
  • Change the tag label to be the same as the plain release number
  • See https://github.com/ndpar/gitmaven
  • Then push main branch
git checkout main
git push
git push --tags
  • Create maintenance branch (optional) e.g.
checkout -b 1.8.3 1.8.3
git push
git push --tags

To build download zip packages

  • Push release commits as described above
  • Reset to previous commit (the release)
mvn -DskipTests=true clean package source:test-jar source:aggregate javadoc:aggregate
mvn -N antrun:run@release

To build native calculator image

  • Make sure GraalVM bin directory is in the path
native-image --static org.apfloat.php.CalculatorWrapper calculator -cp classes:applet.jar:apfloat.jar:calc.jar --no-fallback