|
1 | 1 | # Releasing OpenTelemetry Java Contrib Artifacts |
2 | 2 |
|
3 | | -This project currently has two gradle tasks capable of preparing and releasing artifacts: `mavenPublish` |
4 | | -and `ossSnapshot`. In order for you to register your contributed project to be published by these commands, |
5 | | -you must apply the provided publish script plugin in your subproject's gradle file: |
| 3 | +This project currently has three gradle tasks capable of preparing and releasing artifacts: `mavenPublish`, |
| 4 | +`ossSnapshot`, and `otelRelease`. In order for you to register your contributed project to be published by |
| 5 | +these commands, you must apply the provided publish script plugin in your subproject's gradle file: |
6 | 6 |
|
7 | 7 | ```groovy |
8 | 8 | apply from: project.publish |
@@ -33,18 +33,20 @@ your machine. The ability to publish to a stable remote repository like Maven Ce |
33 | 33 |
|
34 | 34 | ## `./gradlew ossSnapshot` |
35 | 35 |
|
36 | | -This task will invoke the [Artifactory Plugin](https://www.jfrog.com/confluence/display/JFROG/Gradle+Artifactory+Plugin) |
37 | | -and publish all applicable snapshot artifacts to https://oss.jfrog.org/artifactory/oss-snapshot-local. It's important |
| 36 | +This task will invoke the [Gradle Nexus Publish Plugin](https://github.com/gradle-nexus/publish-plugin) |
| 37 | +and publish all applicable snapshot artifacts to https://oss.sonatype.org/content/repositories/snapshots. It's important |
38 | 38 | to note that these snapshot releases are often from unstable development states and should generally not be used in |
39 | 39 | production environments. |
40 | 40 |
|
41 | | -This task requires an account and API key for the OpenTelemetry Bintray organization. If you have been provided access |
42 | | -and configured your key, please set the required environment variables detailed in the publish script plugin. |
| 41 | +This task requires an account and password for Sonatype's OSSRH with `io.opentelemetry` group permissions. If you have been |
| 42 | +provided access please set the required gradle properties detailed in the publish script plugin. |
43 | 43 |
|
44 | 44 | ## `./gradlew otelRelease` |
45 | 45 |
|
46 | | -This task will invoke the [Bintray Plugin](https://github.com/bintray/gradle-bintray-plugin) |
47 | | -and publish all applicable snapshot artifacts to https://dl.bintray.com/open-telemetry/maven/io/opentelemetry/contrib/, |
48 | | -assuming the current version is not a snapshot. Syncing with Maven Central is not performed at this time. |
| 46 | +This task will also invoke the [Gradle Nexus Publish Plugin](https://github.com/gradle-nexus/publish-plugin) |
| 47 | +and publish all applicable artifacts to a new staging repository at https://oss.sonatype.org/#stagingRepositories before |
| 48 | +closing it for manual release through the Nexus UI. Releasing the repository will initiate automatic syncing with |
| 49 | +Maven Central. |
49 | 50 |
|
50 | | -Like `ossSnapshot`, this task requires an account and API key for the OpenTelemetry Bintray organization. |
| 51 | +Like `ossSnapshot`, this task requires an account and permissions for Sonatype OSSRH, in addition to a PGP key registered |
| 52 | +with a public keyserver. |
0 commit comments