Use HTTPS for downloading released versions

This commit changes the protocol used for downloading the Maven metadata
for released versions of Elasticsearch from HTTP to HTTPS.
This commit is contained in:
Jason Tedor 2016-09-12 19:48:12 -04:00
parent 494ad0d572
commit 262a5ee311

View File

@ -122,7 +122,7 @@ task stop {
Set<String> getVersions() {
Node xml
new URL('http://repo1.maven.org/maven2/org/elasticsearch/elasticsearch/maven-metadata.xml').openStream().withStream { s ->
new URL('https://repo1.maven.org/maven2/org/elasticsearch/elasticsearch/maven-metadata.xml').openStream().withStream { s ->
xml = new XmlParser().parse(s)
}
return new TreeSet<>(xml.versioning.versions.version.collect { it.text() }.findAll { it ==~ /2\.\d\.\d/ })