Skip to content

Commit c313ea6

Browse files
authored
Merge pull request scalacenter#2291 from bjaglin/ossrh
use Sonatype Central Snapshots instead of OSSRH public/snapshots
2 parents f9af495 + 7856e1b commit c313ea6

File tree

7 files changed

+6
-20
lines changed

7 files changed

+6
-20
lines changed

bin/test-release.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,4 @@ cs resolve \
2525
ch.epfl.scala:scalafix-testkit_$scala212:$version \
2626
ch.epfl.scala:scalafix-testkit_$scala213:$version \
2727
ch.epfl.scala:scalafix-testkit_$scala3LTS:$version \
28-
ch.epfl.scala:scalafix-testkit_$scala3Next:$version \
29-
-r sonatype:public
28+
ch.epfl.scala:scalafix-testkit_$scala3Next:$version

docs/developers/tutorial.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -778,9 +778,7 @@ custom repository like Bintray or a private Nexus.
778778
```scala
779779
// build.sbt
780780
ThisBuild / scalafixResolvers ++= List(
781-
coursierapi.MavenRepository.of("https://dl.bintray.com/scalacenter/releases"),
782-
coursierapi.MavenRepository.of("https://oss.sonatype.org/content/repositories/snapshots"),
783-
coursierapi.IvyRepository.of("https://dl.bintray.com/sbt/sbt-plugin-releases/[defaultPattern]"),
781+
coursierapi.MavenRepository.of("https://central.sonatype.com/repository/maven-snapshots/"),
784782
coursierapi.IvyRepository.of("https://foo.com/a/b/c/[defaultPattern]")
785783
)
786784
```

docs/users/installation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,12 +463,12 @@ If using the sbt plugin:
463463
```diff
464464
// project/plugins.sbt
465465
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "@VERSION@")
466-
+resolvers += Resolver.sonatypeRepo("snapshots")
466+
+resolvers += Resolver.sonatypeCentralSnapshots
467467
+dependencyOverrides += "ch.epfl.scala" % "scalafix-interfaces" % "@NIGHTLY_VERSION@"
468468
```
469469

470470
If using the command-line interface:
471471

472472
```sh
473-
cs launch ch.epfl.scala:scalafix-cli_@SCALA213@:@NIGHTLY_VERSION@ -r sonatype:snapshots --main scalafix.cli.Cli -- --help
473+
cs launch ch.epfl.scala:scalafix-cli_@SCALA213@:@NIGHTLY_VERSION@ -r https://central.sonatype.com/repository/maven-snapshots --main scalafix.cli.Cli -- --help
474474
```

project/ScalafixBuild.scala

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,10 +195,6 @@ object ScalafixBuild extends AutoPlugin with GhpagesKeys {
195195
override def globalSettings: Seq[Def.Setting[_]] = List(
196196
excludeLintKeys += scalafixConfig, // defined on projects where ScalafixPlugin is disabled
197197
stableVersion := (ThisBuild / version).value.replaceFirst("\\+.*", ""),
198-
resolvers ++=
199-
Resolver.sonatypeOssRepos("snapshots") ++
200-
Resolver.sonatypeOssRepos("public") :+
201-
Resolver.mavenLocal,
202198
Test / testOptions += Tests.Argument("-oD"),
203199
updateOptions := updateOptions.value.withCachedResolution(true),
204200
ThisBuild / watchTriggeredMessage := Watch.clearScreenOnTrigger,

scalafix-rules/src/main/scala-3/pc/Embedded.scala

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import scala.meta.pc.PresentationCompiler
99

1010
import coursierapi.Dependency
1111
import coursierapi.Fetch
12-
import coursierapi.MavenRepository
1312

1413
object Embedded {
1514

@@ -61,12 +60,6 @@ object Embedded {
6160
val jars = Fetch
6261
.create()
6362
.addDependencies(deps: _*)
64-
.addRepositories(
65-
// for some versions, the presentation compiler depends on mtags-interfaces SNAPSHOTs
66-
MavenRepository.of(
67-
"https://oss.sonatype.org/content/repositories/snapshots"
68-
)
69-
)
7063
.fetch()
7164
.asScala
7265
.map(_.toPath())

scalafix-tests/integration/src/test/scala-2/scalafix/tests/util/compat/SemanticdbPlugin.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ object SemanticdbPlugin {
2424
.addDependencies(dep)
2525
.addRepositories(
2626
MavenRepository(
27-
"https://oss.sonatype.org/content/repositories/snapshots"
27+
"https://central.sonatype.com/repository/maven-snapshots"
2828
)
2929
)
3030
.run()

scalafix-tests/integration/src/test/scala/scalafix/tests/interfaces/ScalafixSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class ScalafixSuite extends AnyFunSuite {
3434
Repository.central(), // for scala libs
3535
MavenRepository.of(
3636
// for scalameta SNAPSHOTS
37-
"https://oss.sonatype.org/content/repositories/snapshots"
37+
"https://central.sonatype.com/repository/maven-snapshots"
3838
)
3939
).asJava
4040

0 commit comments

Comments
 (0)