We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ac5c5e commit 8035feeCopy full SHA for 8035fee
project/scripts/bisect.scala
@@ -169,9 +169,13 @@ class Releases(val releases: Vector[Release])
169
170
object Releases:
171
lazy val allReleases: Vector[Release] =
172
- val re = raw"""(?<=title=")(.+-bin-\d{8}-\w{7}-NIGHTLY)(?=/")""".r
173
- val html = Source.fromURL("https://repo1.maven.org/maven2/org/scala-lang/scala3-compiler_3/")
174
- re.findAllIn(html.mkString).map(Release.apply).toVector
+ val re = raw"<version>(.+-bin-\d{8}-\w{7}-NIGHTLY)</version>".r
+ val xml = io.Source.fromURL(
+ "https://repo1.maven.org/maven2/org/scala-lang/scala3-compiler_3/maven-metadata.xml"
175
+ )
176
+ re.findAllMatchIn(xml.mkString)
177
+ .flatMap{ m => Option(m.group(1)).map(Release.apply) }
178
+ .toVector
179
180
def fromRange(range: ReleasesRange): Vector[Release] = range.filter(allReleases)
181
0 commit comments