Skip to content

Releases: ShiningPr1sm/PercentAnimation

New Release | v1.0.2

Choose a tag to compare

@ShiningPr1sm ShiningPr1sm released this 18 Jul 19:54
990fb13

Release v1.0.2

Added:

  • Builder API for ConsoleProgressBar and ConsoleSpinner — readable configuration via builder().total(100).style(Style.BLOCKS).build()
  • AutoCloseable — try-with-resources support for both classes
  • AnsiColor — a utility class for ANSI RGB codes has been extracted;
    duplicate gradient logic has been removed
  • ConsoleSpinner.isRunning() — checking the spinner's status from outside
  • ConsoleSpinner.setMessage() — changing the message while the spinner is running
  • ConsoleProgressBar.getPercentage() — retrieves the current percentage
  • JUnit 5 Tests — 35 unit tests for ConsoleProgressBar, ConsoleSpinner, and AnsiColor
  • LICENSE — MIT license file added

Fixed:

  • Main.java has been removed from the JAR, the demo class has been moved to src/test/java;
    mainClass has been removed from the maven-jar-plugin, and the published JAR no longer contains an entry point
  • Division by zero — added validation for total > 0 and barLength > 0 in constructors, resulting in an IllegalArgumentException
  • CENTER position — the percentage is now correctly centered on the bar without any visual artifacts
  • Arrow style at 0% — the incorrect gradient color for the empty arrow has been removed
  • ConsoleSpinner.stop() — the length of the string to be cleared is calculated dynamically instead of using message.length() + 20
  • GPG plugin — moved to the release Maven profile;
    mvn install now works without a GPG key
  • maven-compiler-plugin — uses --release 21 instead of source/target for strict compatibility
  • Thread safety — update() and finish() in ConsoleProgressBar and start() and stop() in ConsoleSpinner are synchronized;
    the message in ConsoleSpinner is marked as volatile

Full Changelog: v1.0.1...v1.0.2

New Release | v1.0.1

Choose a tag to compare

@ShiningPr1sm ShiningPr1sm released this 28 Jun 11:15
ab0787e

Release v1.0.1

  • Add brackets to right-side percentage display for progressbar.

New Release | v1.0.0

Choose a tag to compare

@ShiningPr1sm ShiningPr1sm released this 25 Jun 20:51
a4f4f76

Release v1.0.0

  • Initial release of the PercentAnimation library for Java console applications.
  • Implemented core progress bar functionality with dynamic ANSI color gradients.
  • Added asynchronous console spinners for background task tracking.
  • Configured project deployment setup for seamless integration with Maven Central.