lhotari opened a new pull request, #26017:
URL: https://github.com/apache/pulsar/pull/26017
### Motivation
The release staging script `src/stage-release.sh` was left pointing at the
Maven layout after the build migrated to Gradle, so it no longer works:
- it called `./get-project-version.py`, which was removed during the
migration;
- it copied the binary distributions from `distribution/*/target/`, but
Gradle writes them to `distribution/*/build/distributions/`;
- it copied an IO connectors distribution that the Gradle build no longer
produces.
### Modifications
- Read the version from `gradle.properties` via `get-pulsar-version.sh`.
- Copy the server, offloaders and shell binary distributions from the Gradle
output directory `build/distributions` instead of the Maven `target`.
- Drop the IO connectors copy; `pulsar-connectors` is released separately.
The source release is left unchanged: it is still produced by `git archive`
of `HEAD`. Because `.gitattributes` declares no `export-ignore`, the archive
contains every tracked file, which already covers everything needed to build
from source (the Gradle wrapper and `gradle-wrapper.jar`, `build-logic`,
`settings.gradle.kts`, `gradle.properties`, the version catalog and all module
build files). No `.gitignore`/`.gitattributes` changes are required.
### Verifying this change
- [ ] Make sure that the change passes the CI checks.
This change is build/release tooling and is not covered by automated tests.
It was verified manually:
- `src/get-pulsar-version.sh` returns the expected version from
`gradle.properties`.
- The generated source tarball (`git archive` of `HEAD`) was extracted and
the Gradle build configured from the extract alone with `./gradlew help
--offline`, confirming the source release is self-contained.
- The binary distribution paths match the `Tar`/`Zip` task outputs in
`distribution/{server,offloaders,shell}/build.gradle.kts`
(`build/distributions/apache-pulsar[-offloaders|-shell]-$VERSION-bin.{tar.gz,zip}`).
### Does this pull request potentially affect one of the following parts:
*If the box was checked, please highlight the changes*
- [ ] Dependencies (add or upgrade a dependency)
- [ ] The public API
- [ ] The schema
- [ ] The default values of configurations
- [ ] The threading model
- [ ] The binary protocol
- [ ] The REST endpoints
- [ ] The admin CLI options
- [ ] The metrics
- [ ] Anything that affects deployment
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]