Skip to content

MINOR: srcJar should depend on processMessages task#13316

Merged
ijuma merged 1 commit intoapache:trunkfrom
ijuma:fix-gradle-install
Feb 28, 2023
Merged

MINOR: srcJar should depend on processMessages task#13316
ijuma merged 1 commit intoapache:trunkfrom
ijuma:fix-gradle-install

Conversation

@ijuma
Copy link
Copy Markdown
Member

@ijuma ijuma commented Feb 28, 2023

This fixes the following ./gradlew install issue:

* What went wrong:
A problem was found with the configuration of task ':storage:srcJar' (type 'Jar').
  - Gradle detected a problem with the following location: '/Users/ijuma/src/kafka/storage/src/generated/java'.

    Reason: Task ':storage:srcJar' uses this output of task ':storage:processMessages' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.

    Possible solutions:
      1. Declare task ':storage:processMessages' as an input of ':storage:srcJar'.
      2. Declare an explicit dependency on ':storage:processMessages' from ':storage:srcJar' using Task#dependsOn.
      3. Declare an explicit dependency on ':storage:processMessages' from ':storage:srcJar' using Task#mustRunAfter.

    Please refer to https://docs.gradle.org/8.0.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

This fixes the following `./gradlew install` issue:

```text
* What went wrong:
A problem was found with the configuration of task ':storage:srcJar' (type 'Jar').
  - Gradle detected a problem with the following location: '/Users/ijuma/src/kafka/storage/src/generated/java'.

    Reason: Task ':storage:srcJar' uses this output of task ':storage:processMessages' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.

    Possible solutions:
      1. Declare task ':storage:processMessages' as an input of ':storage:srcJar'.
      2. Declare an explicit dependency on ':storage:processMessages' from ':storage:srcJar' using Task#dependsOn.
      3. Declare an explicit dependency on ':storage:processMessages' from ':storage:srcJar' using Task#mustRunAfter.

    Please refer to https://docs.gradle.org/8.0.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
```
@ijuma ijuma requested review from dajac and omkreddy February 28, 2023 05:20
Copy link
Copy Markdown
Member

@dajac dajac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks.

@ijuma
Copy link
Copy Markdown
Member Author

ijuma commented Feb 28, 2023

Test failures are unrelated.

@ijuma ijuma merged commit dcc1799 into apache:trunk Feb 28, 2023
@ijuma ijuma deleted the fix-gradle-install branch February 28, 2023 15:16
rittikaadhikari added a commit to confluentinc/kafka that referenced this pull request Feb 28, 2023
…tream-trunk-27-Feb-2023

* commit 'dcc179995153c22c6248702976b60755b0b9fda8':
  MINOR: srcJar should depend on processMessages task (apache#13316)
  KAFKA-14659 source-record-write-[rate|total] metrics should exclude filtered records (apache#13193)
  MINOR: ExponentialBackoff Javadoc improvements (apache#13317)
  KAFKA-14742: Throttle connectors in ExactlyOnceSourceIntegrationTest to fix flakey OOMEs (apache#13291)
rittikaadhikari added a commit to confluentinc/kafka that referenced this pull request Feb 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants