Class PinTasks

java.lang.Object
org.jpos.gradle.PinTasks

public final class PinTasks extends Object
Tasks to pin/unpin SNAPSHOT versions in gradle/libs.versions.toml.

During development, projects track -SNAPSHOT versions of jPOS, jPOS-EE and related libraries. When entering a certification or QA phase, those versions are pinned to a specific timestamped snapshot build (e.g. 3.0.2-20260720.022713-26), as advertised by the repository's version-level maven-metadata.xml. These tasks automate the round trip:

  • pins — lists every SNAPSHOT (or pinned) version entry and the latest snapshot build available in the project's Maven repositories.
  • pin [--ref jpos] [--to 3.0.2-20260720.022713-26] — pins version entries (all of them by default) to the latest snapshot build (or an explicit one given with --to), recording the original SNAPSHOT in a trailing # pinned-from comment.
  • unpin [--ref jpos] — restores the original SNAPSHOT version(s).

Edits are line-based so comments and formatting in the catalog are preserved.

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Pins version entries to specific timestamped snapshot builds, keeping the original SNAPSHOT in a marker comment.
    static class 
    Lists SNAPSHOT/pinned entries and the latest snapshot builds available in the project's repositories.
    static class 
    Restores pinned entries back to their original SNAPSHOT versions.
  • Method Summary

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait