Uploaded image for project: 'Maven Wrapper'
  1. Maven Wrapper
  2. MWRAPPER-124

MavenWrapperDownloader uses new URL(String), which is deprecated in Java 21

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • 3.2.0
    • 3.3.0
    • Maven Wrapper Scripts
    • None

    Description

      new URL(String)
      

      was deprecated in Java 21: https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/net/URL.html#constructor-deprecation

      The Maven Wrapper docs say that Java 7+ is supported, so we can switch to using

      URI.create(String).toURL()
      

      instead, which is supported in Java 7

      Attachments

        Issue Links

          Activity

            People

              slachiewicz Sylwester Lachiewicz
              rhowe Russell Howe
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: