Skip to content

5.0.0

Compare
Choose a tag to compare
@v1nc3n4 v1nc3n4 released this 15 Jan 15:20

This release brings breaking changes about HTTP/HTTPS proxy management, to provide support of JVM network properties. proxy* properties in the plugin are renamed, and default value for port changes.

Features

  • Possible use of JVM network properties (JDK 11 / JDK 8) when proxying HTTP/HTTPS requests (#136)

Bug fixes

  • Fixed ConcurrentModificationException thrown when Gradle's parallel mode is enabled (#141)
  • Fixed "Invalid cookie header" warnings when running task installYarn (#134)

Tasks

  • Migrate CI to GitHub actions instead of Travis (#145)

Upgrading from 4.0.0+

  1. The plugin's extension now supports distinct settings:
  • To configure usage of a proxy for HTTPS requests: use httpsProxyHost, httpsProxyPort, httpsProxyUsername, httpsProxyPassword properties.
  • To configure usage of a proxy for HTTP requests: use httpProxyHost, httpProxyPort, httpProxyUsername, httpProxyPassword properties.

JVM network property http.nonProxyHosts is also used now by the plugin to eventually disable proxying, for both HTTP and HTTPS requests.

  • If you were using former proxy* properties, in most cases, you should just have to rename these properties into httpsProxy* properties, or httpProxy* properties if you used non-secure URLs in nodeDistributionUrlRoot or yarnDistributionUrlRoot properties. You may also have to set explicitly proxy port with httpsProxyPort or httpProxyPort properties, because the default value changed.
  • If you were not using former proxy* properties, upgrading should be effortless as long as your JVM network properties allow downloading distributions.
  1. Default value for the proxy port is changed

Formerly, the plugin used port 8080 as the default value for the proxyPort property. With new httpsProxyPort and httpProxyPort properties, default values are port 443 and port 80 respectively.