Skip to content

Conversation

@mkurz
Copy link
Member

@mkurz mkurz commented Jul 1, 2025

No description provided.

override def trigger = allRequirements

override def projectSettings: Seq[Def.Setting[?]] = Def.settings(
resolvers ++= Resolver.sonatypeOssRepos("releases"), // sync BuildSettings.scala
Copy link
Member Author

@mkurz mkurz Jul 1, 2025

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`):
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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"""
Copy link
Member Author

@mkurz mkurz Jul 1, 2025

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"""
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

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.

@mkurz mkurz force-pushed the central_portal_last_things branch from dd5667e to 8e60bc9 Compare July 1, 2025 10:19
@mkurz
Copy link
Member Author

mkurz commented Jul 1, 2025

fyi #13322 (comment)

@mkurz mkurz merged commit 0ea80b4 into playframework:main Jul 1, 2025
29 checks passed
@mkurz mkurz deleted the central_portal_last_things branch July 1, 2025 10:47
@mkurz
Copy link
Member Author

mkurz commented Jul 1, 2025

@Mergifyio backport 2.9.x 3.0.x

@mergify
Copy link
Contributor

mergify bot commented Jul 1, 2025

backport 2.9.x 3.0.x

✅ Backports have been created

Details

mkurz added a commit that referenced this pull request Jul 1, 2025
mkurz added a commit that referenced this pull request Jul 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant