Parkerhiphop commented on code in PR #21340:
URL: https://github.com/apache/kafka/pull/21340#discussion_r2725998653
##########
build.gradle:
##########
@@ -3990,3 +3990,103 @@ task aggregatedJavadoc(type: Javadoc, dependsOn:
compileJava) {
includes = projectsWithJavadoc.collectMany { it.javadoc.getIncludes() }
excludes = projectsWithJavadoc.collectMany { it.javadoc.getExcludes() }
}
+
+
+def updateVersionTask = tasks.register('updateVersion') {
Review Comment:
Sure! I've updated the PR description with the details, but here is the
output when inconsistencies are detected.
For example, if I manually update `gradle.properties` but forget to sync
other files, running `./gradlew check` (or just the verify task) will fail with:
```
> Task :verifyVersionConsistency FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':verifyVersionConsistency'.
> Found inconsistent versions in the following files:
committer-tools/kafka-merge-pr.py
tests/kafkatest/version.py
tests/kafkatest/__init__.py
streams/quickstart/pom.xml
streams/quickstart/java/pom.xml
streams/quickstart/java/src/main/resources/archetype-resources/pom.xml
Please run './gradlew updateVersion -PnewVersion=...' to fix them.
```
The output will show the inconsistent files and inform the `updateVersion`
task.
--
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]