-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
oss.sonatype.org is dead #13360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
oss.sonatype.org is dead #13360
Conversation
| override def trigger = allRequirements | ||
|
|
||
| override def projectSettings: Seq[Def.Setting[?]] = Def.settings( | ||
| resolvers ++= Resolver.sonatypeOssRepos("releases"), // sync BuildSettings.scala |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was never used by us in the last years anyway.
I remember the oss "release" repository was just used long time ago when using some old release process (long before sbt-ci-release). The problem was that there was a time gap between publishing and when the artifacts really appeared on maven central. And with that old release process the some artifacts had to be downloaded already during publishing the next artifacts and so and so this why the releases repo was added because the artifacts were available immediately.
| ## Accessing nightly snapshots | ||
|
|
||
| Nightly snapshots are published to the Sonatype snapshots repository. You can [browse the play directory to find the version of the sbt-plugin you'd like to use](https://oss.sonatype.org/content/repositories/snapshots/org/playframework/sbt-plugin_2.12_1.0/) in your `plugins.sbt`. To enable the snapshots repo in your build, you must add a resolver (typically in `plugins.sbt`): | ||
| Nightly snapshots are published to the Maven Central snapshots repository. You can [browse the play directory to find the version of the sbt-plugin you'd like to use](https://central.sonatype.com/service/rest/repository/browse/maven-snapshots/org/playframework/sbt-plugin_2.12_1.0/) in your `plugins.sbt`. To enable the snapshots repo in your build, you must add a resolver (typically in `plugins.sbt`): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://central.sonatype.com/service/rest/repository/browse/maven-snapshots/org/playframework/sbt-plugin_2.12_1.0/ currently gives 404 but I think this is just temporary 🤞 because I was using that approach in the past weeks with sbt plugins (e.g. https://central.sonatype.com/service/rest/repository/browse/maven-snapshots/com/github/sbt/)
Or for example you can download a snapshot jar here: https://central.sonatype.com/repository/maven-snapshots/org/playframework/play-exceptions/3.1.0-M2-07aff7c6-SNAPSHOT/play-exceptions-3.1.0-M2-07aff7c6-SNAPSHOT-javadoc.jar
Now if you remove the jar and want to take a look at the folder https://central.sonatype.com/repository/maven-snapshots/org/playframework/play-exceptions/3.1.0-M2-07aff7c6-SNAPSHOT/ there is a link that says "browse" which takes you to the first link...
If this is not temporary we need to change/remove that link later...
| val slashedOrg = organization.replace('.', '/') | ||
| raw"""https://oss.sonatype.org/service/local/repositories/public/archive/$slashedOrg/$name/$apiVersion/$jarBaseFile-javadoc.jar/!/index.html""" | ||
| if (apiVersion.toLowerCase(Locale.ENGLISH).endsWith("-snapshot")) { | ||
| raw"""https://central.sonatype.com/repository/maven-snapshots/$slashedOrg/$name/$apiVersion/$jarBaseFile-javadoc.jar/!/index.html""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| if (apiVersion.toLowerCase(Locale.ENGLISH).endsWith("-snapshot")) { | ||
| raw"""https://central.sonatype.com/repository/maven-snapshots/$slashedOrg/$name/$apiVersion/$jarBaseFile-javadoc.jar/!/index.html""" | ||
| } else { | ||
| raw"""https://repo1.maven.org/maven2/$slashedOrg/$name/$apiVersion/$jarBaseFile-javadoc.jar/!/index.html""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will see on next deployment anyway if all of this works.
dd5667e to
8e60bc9
Compare
|
fyi #13322 (comment) |
|
@Mergifyio backport 2.9.x 3.0.x |
✅ Backports have been createdDetails
|
No description provided.