Skip to content

Commit 00783c0

Browse files
bcorsoDagger Team
authored andcommitted
Fix HEAD-SNAPSHOT deployment.
This CL makes the following changes: * Updates Sonatype snapshot url for CI action: https://central.sonatype.com/repository/maven-snapshots * Updates `dev-guide/versions.md` documentation for Gradle setup * Updates `workspace_defs.bzl` for Bazel setup RELNOTES=N/A PiperOrigin-RevId: 782081321
1 parent 34284ea commit 00783c0

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

dev-guide/versions.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ changes at HEAD. Unlike the [Dagger release artifacts](#release-artifacts), the
1818
`HEAD-SNAPSHOT` artifacts are updated on each commit to the Dagger codebase.
1919

2020
Dagger's `HEAD-SNAPSHOT` artifacts can be found at
21-
[https://oss.sonatype.org/content/repositories/snapshots/com/google/dagger/](https://oss.sonatype.org/content/repositories/snapshots/com/google/dagger/).
21+
[https://central.sonatype.com/repository/maven-snapshots/com/google/dagger/](https://central.sonatype.com/repository/maven-snapshots/com/google/dagger/).
2222

2323
We don't recommended using the `HEAD-SNAPSHOT` artifacts in production, but it
2424
can be used to test out, verify, or just give feedback on features that are not
@@ -40,22 +40,23 @@ dependencies {
4040
```
4141

4242
Next, update your plugin and project repositories to include the Sonatype
43-
snapshot url. This usually goes in your top-level `build.gradle` file. For
44-
example:
43+
snapshot url (see
44+
https://central.sonatype.org/publish/publish-portal-snapshots/#consuming-via-gradle).
45+
This usually goes in your top-level `build.gradle` file. For example:
4546

4647
```groovy
4748
// top-level build.gradle file
4849
buildscript {
4950
repositories {
5051
maven {
51-
url "https://oss.sonatype.org/content/repositories/snapshots"
52+
url "https://central.sonatype.com/repository/maven-snapshots"
5253
}
5354
}
5455
}
5556
allprojects {
5657
repositories {
5758
maven {
58-
url "https://oss.sonatype.org/content/repositories/snapshots"
59+
url "https://central.sonatype.com/repository/maven-snapshots"
5960
}
6061
}
6162
}

0 commit comments

Comments
 (0)