Skip to content

Conversation

frankvicky
Copy link
Contributor

reference: https://docs.gradle.org/8.10.2/dsl/org.gradle.api.Project.html#org.gradle.api.Project:buildDir

buidDir is deprecated and will be removed in the next major version of Gradle. We should replace it with getLayout().getBuildDirectory().

Committer Checklist (excluded from commit message)

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

@github-actions github-actions bot added triage PRs from the community build Gradle build or GitHub Actions small Small PRs labels Jan 13, 2025
@frankvicky frankvicky force-pushed the replace-deprecated-builddir-property branch from f821867 to 30ba2ec Compare January 13, 2025 08:35
build.gradle Outdated
@@ -1162,7 +1162,7 @@ project(':core') {
if (versions.baseScala == '2.13') {
scoverageScalaVersion = '2.13.9' // there's no newer 2.13 artifact, org.scoverage:scalac-scoverage-plugin_2.13.9:2.0.11 is the latest as of now
}
reportDir = file("${rootProject.buildDir}/scoverage")
reportDir = file("${rootProject.layout.buildDirectory.get().asFile.path}/scoverage")
Copy link
Member

Choose a reason for hiding this comment

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

I think we don't need rootProject..

@frankvicky frankvicky force-pushed the replace-deprecated-builddir-property branch from 30ba2ec to be8f9c1 Compare January 13, 2025 15:33
@github-actions github-actions bot removed the triage PRs from the community label Jan 14, 2025
@frankvicky frankvicky force-pushed the replace-deprecated-builddir-property branch from be8f9c1 to a7ee9a7 Compare January 14, 2025 03:46
@frankvicky frankvicky force-pushed the replace-deprecated-builddir-property branch from a7ee9a7 to 60dcb9e Compare January 14, 2025 08:55
@frankvicky
Copy link
Contributor Author

Failed tests are not related to the patch.

Copy link
Member

@mimaison mimaison 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!

@mimaison mimaison merged commit 81938eb into apache:trunk Jan 14, 2025
7 of 9 checks passed
pranavt84 pushed a commit to pranavt84/kafka that referenced this pull request Jan 27, 2025
airlock-confluentinc bot pushed a commit to confluentinc/kafka that referenced this pull request Jan 27, 2025
manoj-mathivanan pushed a commit to manoj-mathivanan/kafka that referenced this pull request Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Gradle build or GitHub Actions ci-approved small Small PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants