Skip to content

Commit

Permalink
Merge pull request #243 from carlosedp/fixoracle
Browse files Browse the repository at this point in the history
Fix Oracle JDK index generation
  • Loading branch information
ckipp01 authored Mar 19, 2024
2 parents ff25289 + 5cae11b commit 04f1a71
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Oracle.scala
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ object Oracle {
jdkVersion: String,
indexArchiveType: String
) {
lazy val url =
lazy val url: sttp.model.Uri =
uri"https://download.oracle.com/$indexJdkName/$jdkVersion/latest/$jdkName-${jdkVersion}_$os-${indexArch}_bin.$ext"

lazy val jdkName = indexJdkName match {
Expand All @@ -35,7 +35,8 @@ object Oracle {
}

def index(url: String) =
Index(indexOs, arch, s"$jdkName@oracle", jdkVersion, url)
val indexUrl = s"$indexArchiveType+$url"
Index(indexOs, arch, s"jdk@$indexJdkName-oracle", jdkVersion, indexUrl)
}

def index(): Index = {
Expand Down

0 comments on commit 04f1a71

Please sign in to comment.