[2.x] Avoid deprecated url method in test (#9453)

This commit is contained in:
kenji yoshida 2026-07-15 23:56:04 +09:00 committed by GitHub
parent 972d574750
commit 5ff0c638d4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 7 additions and 7 deletions

View File

@ -21,8 +21,8 @@ val bResolver = Def.setting {
}
val apiBaseSetting = apiURL := Some(apiBase(name.value))
def apiBase(projectName: String) = url(s"http://example.org/${projectName}")
def scalaLibraryBase(v: String) = url(s"https://www.scala-lang.org/api/$v/")
def apiBase(projectName: String) = uri(s"http://example.org/${projectName}")
def scalaLibraryBase(v: String) = uri(s"https://www.scala-lang.org/api/$v/")
def addDep(projectName: String) =
libraryDependencies += organization.value %% projectName % version.value

View File

@ -7,15 +7,15 @@ lazy val root = (project in file(".")).settings(
XML.loadFile(converter.toPath(vf).toFile)
},
description := "pom.xml test description",
homepage := Some(url("https://example.com/pom_test_url")),
homepage := Some(uri("https://example.com/pom_test_url")),
TaskKey[Unit]("checkPom") := checkPom.value,
TaskKey[Unit]("checkExtra") := checkExtra.value,
TaskKey[Unit]("checkVersionPlusMapping") := checkVersionPlusMapping.value,
TaskKey[Unit]("checkAPIURL") := checkAPIURL.value,
TaskKey[Unit]("checkReleaseNotesURL") := checkReleaseNotesURL.value,
resolvers += Resolver.sonatypeRepo("snapshots"),
apiURL := Some(url("https://www.scala-sbt.org/1.x/api/")),
releaseNotesURL := Some(url("https://github.com/sbt/sbt/releases")),
apiURL := Some(uri("https://www.scala-sbt.org/1.x/api/")),
releaseNotesURL := Some(uri("https://github.com/sbt/sbt/releases")),
makePomConfiguration := {
val p = makePomConfiguration.value
p.withExtra(<extra-tag/>)

View File

@ -7,7 +7,7 @@ lazy val root = (project in file(".")) settings(
useIvy := true,
name := "ivy-xml-test",
description := descriptionValue,
homepage := Some(url(homepageValue)),
homepage := Some(uri(homepageValue)),
TaskKey[Unit]("checkIvyXml") := {
val ivyXml = XML.loadFile(makeIvyXml.value)

View File

@ -1,7 +1,7 @@
lazy val b = project
.settings(
apiURL := Some(url(s"http://example.org/b")),
apiURL := Some(uri(s"http://example.org/b")),
publishMavenStyle := false,
publishTo := Some(bResolver.value),
organization := "b",