Skip to content

PreCapture application version 1.2.0

Latest

Choose a tag to compare

@chicoreus chicoreus released this 06 Nov 19:11
· 1 commit to master since this release
v1.2.0

PreCapture 1.2.0

The first release since 1.1.2 (2016). It brings all the libraries up to date, adds an automatic conversion of existing databases, and fixes several data-handling issues.

Changed Requirements

  • Java 17 or later is now required.
  • Run with java -jar PreCaptureApp-1.2.0.jar.

Upgrading from 1.1.2 or earlier

  • The database library, H2, has been updated, and existing databases (PRECAPTURE2.h2.db from 1.1.2) must be converted to the new format.
  • On first start, PreCapture detects an older database and offers to convert it. Converting downloads the earlier H2 version from Maven Central, so it needs an internet connection. The original file is kept with a .bak suffix.
  • Without an internet connection, PreCapture can start with a new, empty database instead, keeping the old file. Then reload the taxon authority file (Configuration → Data Sources).

Changes and fixes

  • Startup no longer deletes data. Previously, a database error during startup could drop and recreate the tables.
  • Configurable database location: set config.database in PreCapture.properties.
  • Taxon authority export now includes Subfamily and Tribe, and is written as UTF-8, so non-ASCII names survive export and re-import.
  • CSV files saved by Excel as "CSV UTF-8" now load correctly.
  • Barcodes with accented characters are encoded so that scanners read them correctly.
  • Run Tests now checks barcode readability at 72, 150 and 300 dpi. The README has a table of barcode capacity by resolution, and an example payload.
  • The About box and Help menu report the correct version and libraries.

Internals

  • Updated libraries: Hibernate 7, H2 2.5, iText 5.5.13.6 (refs CVE-2021-43113), PDFBox 3, zxing 3.5, Jakarta XML Binding 4, log4j2, JGoodies Forms 1.9.
  • Replaced or removed unmaintained libraries: Apache Derby, javacsv (now Apache Commons CSV), json-lib (now org.json), and pdf-renderer (now PDFBox).
  • Project setup: standard Maven project layout, new data-layer tests, GitHub Actions running the tests on every push, and an executable jar attached to each release.
  • Generative AI: much of the changes in this release were developed with a generative AI coding assistant; see the README.

What's Changed

New Contributors

Full Changelog: v1.1.2...v1.2.0