Uploaded image for project: 'Maven Shared Components'
  1. Maven Shared Components
  2. MSHARED-1067

Improve Reproducible Builds methods

    XMLWordPrintableJSON

Details

    • Dependency upgrade
    • Status: Closed
    • Major
    • Resolution: Fixed
    • maven-archiver-3.5.2
    • maven-archiver-3.6.0
    • maven-archiver
    • None

    Description

      Maven Archiver 3.5.0 introduces some methods to parse the timestamp and configure the reproducible builds in plexus-archiver.

      The proposal for improvement is to leverage Java 8 APIs and deprecate older methods.

      1. Deprecate the method
        public Date parseOutputTimestamp( String outputTimestamp )
        

        and introduce a new static method:

        public static Optional<Instant> parseBuildOutputTimestamp( String outputTimestamp )
        
      2.  Deprecate the method
        public Date configureReproducible( String outputTimestamp )
        

        and introduce the method

        public void configureReproducibleBuild( String outputTimestamp )
        

      The new API return an Optional<Instant> parsing the timestamp using java.time.format.DateTimeFormatter#ISO_INSTANT.

      Attachments

        Issue Links

          Activity

            People

              michael-o Michael Osipov
              jorsol Jorge Solórzano
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: