|
| 1 | + |
| 2 | +Steps for Making a PDAL Release |
| 3 | +============================================================================== |
| 4 | + |
| 5 | +:Author: Grigory Pomadchin |
| 6 | + |
| 7 | +:Date: 08/08/2017 |
| 8 | + |
| 9 | +This document describes the process for releasing a new version of PDAL JNI bindings. |
| 10 | + |
| 11 | +General Notes |
| 12 | +------------------------------------------------------------------------------ |
| 13 | + |
| 14 | +Release Process |
| 15 | + |
| 16 | +1) Publish JNI Bindings |
| 17 | + What you need: |
| 18 | + - an account on sonatype (https://issues.sonatype.org/secure/Signup!default.jspa) |
| 19 | + - ~/.sbt/1.0/sonatype.sbt file with the following content: |
| 20 | + credentials += Credentials("Sonatype Nexus Repository Manager", |
| 21 | + "oss.sonatype.org", |
| 22 | + "<your username>", |
| 23 | + "<your password>") |
| 24 | + |
| 25 | + The description of the Sonatype publishment process (everything described below is in a java dir: cd PDAL/java): |
| 26 | + - Publishing snaphots: |
| 27 | + Snapshot can be published without PGP sign, it is published to a snapshot repo and allows immediate snaphot updates. |
| 28 | + To publish everything in a local repo use command: |
| 29 | + - ./scripts/publish-local.sh (publishes scala 2.11 version) |
| 30 | + - ./scripts/publish-local-212.sh (publishes scala 2.12 version) |
| 31 | + To publish everything into sonatype snapshot repo use: |
| 32 | + - ./scripts/publish-all.sh |
| 33 | + Summary: |
| 34 | + - Run ./scripts/publish-all.sh and everything is available in a snaphost repository |
| 35 | + - Publishing releases: |
| 36 | + To publish everything into sonatype snapshot repo (staging repo) use: |
| 37 | + - ./scripts/publish-all.sh --suffix="" --signed |
| 38 | + `suffix` defines version suffix (for example `--suffix="-RC1"`) |
| 39 | + `signed` means that jar would be uploaded into a staging sonatype repo with a PGP sign |
| 40 | + Staging means a special repository in a pre released condition. |
| 41 | + - Go into staging repos panel: https://oss.sonatype.org/#stagingRepositories (log in using sonatype user / pwd) |
| 42 | + - Filter by package name (pdal in our case) and select staging repo |
| 43 | + - Press Close button on the top of the table with repos. It would run packages |
| 44 | + validation and will close staging repo in a succesfull case |
| 45 | + - After succesfull closing press Release button. It would be immediately published into sonatype releases repo, |
| 46 | + and synced with maven central ~ in 10 minutes and ~ in 2 hours it would be indexed here: |
| 47 | + http://search.maven.org/#search%7Cga%7C1%7Cio.pdal |
| 48 | + Full official guide: http://central.sonatype.org/pages/ossrh-guide.html |
| 49 | + Deploying to sonatype using sbt official doc: http://www.scala-sbt.org/release/docs/Using-Sonatype.html |
| 50 | + Official sonatype guide with pics of (https://oss.sonatype.org/#stagingRepositories) and answers the question what |
| 51 | + to do after jars were published into a staging repo (in our case after ./scripts/publish-all.sh --suffix="" --signed step) |
| 52 | + Summary: |
| 53 | + - Run ./scripts/publish-all.sh --suffix="" --signed to publish everything into staging repo |
| 54 | + - Go to sonatype panel https://oss.sonatype.org/#stagingRepositories and release the jar |
| 55 | + - Await ~10 minutes to have jars published to maven central |
0 commit comments