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

Inlined mvnw Downloader.java uses `new URL(String)`, which is deprecated in Java 21

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • 3.2.0
    • 3.3.1
    • 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

              cstamas Tamas Cservenak
              gzm55 James Z.M. Gao
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: