OpenTelemetry Auto-Instrumentation for Java uses SemVer standard for versioning of its artifacts.
The version is specified in version.gradle.kts.
Every successful CI build of the main branch automatically executes ./gradlew publishToSonatype
as the last step, which publishes a snapshot build to
Sonatype OSS snapshots repository.
This repository roughly targets monthly minor releases from the main
branch on the Wednesday after
the second Monday of the month (roughly a few of days after the monthly minor release of
opentelemetry-java).
main
updating the CHANGELOG.md
.
## Unreleased
..github/scripts/draft-change-log-entries.sh
as a starting point for writing the change log.main
selected.main
).All patch releases should include only bug-fixes, and must avoid adding/modifying the public APIs.
In general, patch releases are only made for regressions, security vulnerabilities, memory leaks and deadlocks.
release/v1.9.x
, then enter the pull request number that you want to backport,
then click the "Run workflow" button below that.GITHUB_TOKEN
does not have permission to update workflow files (and the
opentelemetrybot
token doesn't have write permission to this repository at all, so while it
can be used to open a PR, it can't be used to push to a local branch).CHANGELOG.md
.
## Unreleased
.release/v1.9.x
, and click the "Run workflow" button below that.release/v1.9.x
, and click the "Run workflow" button below that.After releasing is done, you need to first update the docs. This needs to happen after artifacts have propagated to Maven Central so should probably be done an hour or two after the release workflow finishes.
./gradlew japicmp -PapiBaseVersion=a.b.c -PapiNewVersion=x.y.z
./gradlew --refresh-dependencies japicmp
Where x.y.z
is the version just released and a.b.c
is the previous version.
Create a PR to mark the new release in docs on the main branch.
Same as the core repo, see opentelemetry-java/RELEASING.md#credentials.