Replace deprecated Resolver.sonatypeRepo on Resolver.sonatypeOssRepos for sbt 1.7.+ (#31518)

This commit is contained in:
Andrei Arlou 2022-08-30 09:13:51 +02:00 committed by GitHub
parent e0724e1c03
commit 21c7d472eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -45,7 +45,7 @@ The use of Akka SNAPSHOTs, nightlies and milestone releases is discouraged unles
Make sure that you add the repository to the sbt resolvers:
```
resolvers += Resolver.sonatypeRepo("snapshots")
resolvers ++= Resolver.sonatypeOssRepos("snapshots")
```
Define the library dependencies with the complete version. For example:

View file

@ -86,7 +86,7 @@ object AkkaBuild {
else Seq.empty,
// should we be allowed to use artifacts from sonatype snapshots
if (System.getProperty("akka.build.useSnapshotSonatypeResolver", "false").toBoolean)
resolvers += Resolver.sonatypeRepo("snapshots")
resolvers ++= Resolver.sonatypeOssRepos("snapshots")
else Seq.empty,
pomIncludeRepository := (_ => false) // do not leak internal repositories during staging
)