Merge pull request #404 from armanbilge/patch-1

Better deprecation message for `sonatypeRepo`
This commit is contained in:
eugene yokota 2022-07-29 23:18:29 -04:00 committed by GitHub
commit 8b016c7555
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -155,7 +155,10 @@ private[librarymanagement] abstract class ResolverFunctions {
url("sbt-plugin-" + status, new URL(SbtRepositoryRoot + "/sbt-plugin-" + status + "/"))(
ivyStylePatterns
)
@deprecated("Use sonatypeOssRepos instead", "1.7.0")
@deprecated(
"""Use sonatypeOssRepos instead e.g. `resolvers ++= Resolver.sonatypeOssRepos("snapshots")`""",
"1.7.0"
)
def sonatypeRepo(status: String) =
MavenRepository(
"sonatype-" + status,