-
Notifications
You must be signed in to change notification settings - Fork 604
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- initial script for automating release process - pom.xml is prepared script - README.md updated for release 1.3.27 - Contributors updated
- Loading branch information
Showing
4 changed files
with
152 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# 1.3.27 | ||
|
||
## Changes | ||
|
||
- Add reference to LayoutProcessor to README | ||
- Balancing market content operators when using without properties | ||
- Extend HeaderFooter functionality to create without before Phrase part | ||
- Fix #300: codewords padding for Macro PDF417-macro barcodes | ||
- Fix #392 updated: FontSelector.Process should NOT skip characters | ||
- Fix #408: ConcurrentModificationException in FontFactory | ||
- Fix #513: attach file with unicode name | ||
- Fix #534: Justified Text not supporting RTL | ||
- Fix #536: setSkipFirstHeader not working | ||
- Fix #556: Example Manually positioning text on the pdf | ||
- Fix #573: Example Adding bookmarks for lists and list items | ||
- Fix #580: NullPointerException in SimpleBookmark.getBookmark() | ||
- Fix #584: Add motivations to add FOP | ||
- Fix #587: Set Font in PdfGraphics2D not working/PdfGraphics2D manipulates set Font | ||
- Fix #610: Remove ITXT from PdfName | ||
- Fix #623: Make BaseFont subset prefix generation deterministic | ||
- Fix #629: Infinite loop in xref table causes OOM | ||
- Fix NPE in PdfSmartCopy for some maybe corrupted files | ||
- Fix possible ArrayIndexOutOfBoundsException | ||
- Fix (related to LibrePDF/OpenPDF5#7: LineSeparator prints out OBJECT_REPLACEMENT_CHARACTER | ||
- HTTP Proxy in OCSP and TSA clients and other config for TSA | ||
- Minor code cleanups | ||
- Prevent ClassCastExceptions for PdfNull object during signing PDF docs | ||
- Remove dependency on javax.annotation | ||
- Update PdfDocument skipFirstHeader fixed | ||
- Corrected some license issues | ||
- Minor example changes | ||
|
||
## Updated dependencies: | ||
|
||
- Bump assertj-core from 3.19.0 to 3.22.0 | ||
- Bump bouncycastle.version from 1.68 to 1.69 | ||
- Bump checkstyle from 8.42 to 9.3 | ||
- Bump commons-io from 2.8.0 to 2.11.0 | ||
- Bump junit.version from 5.7.1 to 5.8.2 | ||
- Bump maven-bundle-plugin from 5.1.2 to 5.1.4 | ||
- Bump maven-compiler-plugin from 3.8.1 to 3.10.0 | ||
- Bump maven-gpg-plugin from 1.6 to 3.0.1 | ||
- Bump maven-jar-plugin from 3.2.0 to 3.2.2 | ||
- Bump maven-javadoc-plugin from 3.2.0 to 3.3.2 | ||
- Bump mockito-core from 3.9.0 to 4.3.1 | ||
- Bump nexus-staging-maven-plugin from 1.6.8 to 1.6.11 | ||
- Bump pitest-junit5-plugin from 0.14 to 0.15 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
#!/bin/bash | ||
|
||
if [ "x$LIBREPDF_ORIGIN" == "x" ] | ||
then | ||
echo "Please set LIBREPDF_ORIGIN to the origin-name of the librepdf repository on github." | ||
echo "This could be 'origin' or any name you declared to be that origin." | ||
exit | ||
fi | ||
|
||
if [ $# -ne 1 ] | ||
then | ||
echo "Please give the NEXT SNAPSHOT version number (without -SNAPSHOT)" | ||
exit | ||
fi | ||
|
||
VERSION=$(grep "<version>" pom.xml | head -1 | sed "s/.*<version>\([0-9.]*\)-SNAPSHOT<\/version>.*/\1/") | ||
NEW_VERSION=${1}-SNAPSHOT | ||
|
||
cat << EOD | ||
Will set Version to ${VERSION} and next Snapshot to ${NEW_VERSION}. | ||
Things to do before you continue: | ||
- Update the README.md, so the new Release is mentioned there | ||
- Create a ChangeLog for this release | ||
- Update the contributors and credits | ||
Press ENTER to continue. Ctrl-C to stop. | ||
EOD | ||
read ignored | ||
|
||
echo "1. Setting release version: ${VERSION}" | ||
mvn versions:set -DnewVersion="${VERSION}" | ||
|
||
echo "2. Test build" | ||
mvn clean install | ||
[ $? -eq 0 ] || echo "Errors. Exiting." && exit | ||
|
||
echo "3. Commit changes and tag" | ||
git commit -a -m "Set version to ${VERSION}" && git tag "${VERSION}" | ||
|
||
echo "4. Make a staging release" | ||
mvn clean deploy | ||
RC=$? | ||
|
||
if [ $RC -eq 0 ] | ||
then | ||
cat << EOD | ||
Staging Release seems to be created. Please review it at https://oss.sonatype.org/#stagingRepositories | ||
if everything seems fine, hit ENTER. Else break this script with Ctrl-C. | ||
EOD | ||
else | ||
echo "Something went wrong. Please switch to manual deploy." | ||
echo "(look at https://github.com/LibrePDF/OpenPDF/wiki/Release-Process)" | ||
exit | ||
fi | ||
|
||
echo "5. Deploy release." | ||
mvn nexus-staging:release | ||
|
||
echo "6. Finishing." | ||
echo " - set next SNAPSHOT to $NEW_VERSION" | ||
mvn versions:set -DnewVersion="$NEW_VERSION" | ||
echo " - commit changes" | ||
git commit -a -m "Set new Snapshot to $NEW_VERSION" | ||
echo " - push all to github" | ||
git push "${LIBREPDF_ORIGIN}" --tags | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters