mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-23 05:15:04 +00:00
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:
parent
494ad0d572
commit
262a5ee311
@ -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/ })
|
||||
|
Loading…
x
Reference in New Issue
Block a user