You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/10/08 04:44:17 UTC
[GitHub] [pulsar] ciaocloud opened a new pull request #12298: Change dependencySet scope of assembly from compile to runtime
ciaocloud opened a new pull request #12298:
URL: https://github.com/apache/pulsar/pull/12298
Coauthored with Henry Saputra (hsaputra@apache.org)
<!--
### Contribution Checklist
- Name the pull request in the form "[Issue XYZ][component] Title of the pull request", where *XYZ* should be replaced by the actual issue number.
Skip *Issue XYZ* if there is no associated github issue for this pull request.
Skip *component* if you are unsure about which is the best component. E.g. `[docs] Fix typo in produce method`.
- Fill out the template below to describe the changes contributed by the pull request. That will give reviewers the context they need to do the review.
- Each pull request should address only one issue, not mix up code from multiple issues.
- Each commit in the pull request has a meaningful commit message
- Once all items of the checklist are addressed, remove the above text and this checklist, leaving only the filled out template below.
**(The sections below can be removed for hotfixes of typos)**
*(If this PR fixes a github issue, please add `Fixes #<xyz>`.)*
Fixes #<xyz>
*(or if this PR is one task of a github issue, please add `Master Issue: #<xyz>` to link to the master issue.)*
Master Issue: #<xyz>
-->
### Motivation
Currently, the dependencySet scope of assembly is set to `compile` for Pulsar deployment, this causes the Pulsar's distribution assembly to not include the transitive dependences that tagged with `runtime` scope.
Having the dependencySet as `runtime` instead of scope will actually include both scopes (since `runtime` scope includes the `compile` scope implicitly). This needs to be done before next release artifacts by Apache Bookkeeper generated by Gradle.
### Modifications
*Change dependencySet scope of assembly from `compile` to `runtime` in distribution/server/src/assemble/bin.xml*
### Verifying this change
- [x] Make sure that the change passes the CI checks.
<!--
*(Please pick either of the following options)*
This change is a trivial rework / code cleanup without any test coverage.
*(or)*
-->
This change is already covered by existing tests, such as *integration tests*.
<!--
*(or)*
This change added tests and can be verified as follows:
*(example:)*
- *Added integration tests for end-to-end deployment with large payloads (10MB)*
- *Extended integration test for recovery after broker failure*
-->
### Does this pull request potentially affect one of the following parts:
*If `yes` was chosen, please highlight the changes*
- Dependencies (does it add or upgrade a dependency): (no)
- The public API: (no)
- The schema: (don't know)
- The default values of configurations: (no)
- The wire protocol: (no)
- The rest endpoints: (no)
- The admin cli options: (no)
- **Anything that affects deployment: (yes)**
### Documentation
Check the box below and label this PR (if you have committer privilege).
Need to update docs?
- [ ] doc-required
(If you need help on updating docs, create a doc issue)
- [ ] no-need-doc
(Please explain why)
- [ ] doc
(If this PR contains doc changes)
--
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] Anonymitaet commented on pull request #12298: Change dependencySet scope of assembly from compile to runtime
Posted by GitBox <gi...@apache.org>.
Anonymitaet commented on pull request #12298:
URL: https://github.com/apache/pulsar/pull/12298#issuecomment-941800104
@ciaocloud Thanks for your contribution. For this PR, do we need to update docs?
(The [PR template contains info about doc](https://github.com/apache/pulsar/blob/master/.github/PULL_REQUEST_TEMPLATE.md#documentation), which helps others know more about the changes. Can you provide doc-related info in this and future PR descriptions? Thanks)
--
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] github-actions[bot] commented on pull request #12298: Change dependencySet scope of assembly from compile to runtime
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on pull request #12298:
URL: https://github.com/apache/pulsar/pull/12298#issuecomment-1053791532
The pr had no activity for 30 days, mark with Stale label.
--
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] hsaputra commented on pull request #12298: Change dependencySet scope of assembly from compile to runtime
Posted by GitBox <gi...@apache.org>.
hsaputra commented on pull request #12298:
URL: https://github.com/apache/pulsar/pull/12298#issuecomment-939037736
FYI @merlimat , @jerrypeng - could you help review this PR to see how to change the LICENSE file to include the newly pulled dependencies
--
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] hsaputra commented on pull request #12298: Change dependencySet scope of assembly from compile to runtime
Posted by GitBox <gi...@apache.org>.
hsaputra commented on pull request #12298:
URL: https://github.com/apache/pulsar/pull/12298#issuecomment-939008085
rerun failed checks
--
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] merlimat commented on a change in pull request #12298: Change dependencySet scope of assembly from compile to runtime
Posted by GitBox <gi...@apache.org>.
merlimat commented on a change in pull request #12298:
URL: https://github.com/apache/pulsar/pull/12298#discussion_r725392291
##########
File path: distribution/server/src/assemble/bin.xml
##########
@@ -121,7 +121,7 @@
<dependencySet>
<outputDirectory>lib</outputDirectory>
<unpack>false</unpack>
- <scope>compile</scope>
+ <scope>runtime</scope>
Review comment:
We can potentially also remove some of the excludes below, because they shouldn't be getting picket up anymore:
```
<exclude>org.apache.pulsar:pulsar-functions-runtime-all</exclude>
<exclude>org.projectlombok:lombok</exclude>
<!-- prevent adding pulsar-functions-api-examples in lib -->
<exclude>org.apache.pulsar:pulsar-functions-api-examples</exclude>
```
--
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] ciaocloud commented on a change in pull request #12298: Change dependencySet scope of assembly from compile to runtime
Posted by GitBox <gi...@apache.org>.
ciaocloud commented on a change in pull request #12298:
URL: https://github.com/apache/pulsar/pull/12298#discussion_r726501468
##########
File path: distribution/server/src/assemble/bin.xml
##########
@@ -121,7 +121,7 @@
<dependencySet>
<outputDirectory>lib</outputDirectory>
<unpack>false</unpack>
- <scope>compile</scope>
+ <scope>runtime</scope>
Review comment:
will try to remove those and thanks a lot
--
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] Anonymitaet commented on pull request #12298: Change dependencySet scope of assembly from compile to runtime
Posted by GitBox <gi...@apache.org>.
Anonymitaet commented on pull request #12298:
URL: https://github.com/apache/pulsar/pull/12298#issuecomment-941800104
@ciaocloud Thanks for your contribution. For this PR, do we need to update docs?
(The [PR template contains info about doc](https://github.com/apache/pulsar/blob/master/.github/PULL_REQUEST_TEMPLATE.md#documentation), which helps others know more about the changes. Can you provide doc-related info in this and future PR descriptions? Thanks)
--
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org