Skip to content

fix(build): resolve rat license-check paths against project root#53

Open
InbalHoni wants to merge 1 commit into
apache:mainfrom
InbalHoni:bugfix/rat-daemon-path-resolution
Open

fix(build): resolve rat license-check paths against project root#53
InbalHoni wants to merge 1 commit into
apache:mainfrom
InbalHoni:bugfix/rat-daemon-path-resolution

Conversation

@InbalHoni

Copy link
Copy Markdown

The :rat task used relative paths, which the Gradle daemon's embedded Ant builder resolves against the daemon working directory (~/.gradle/daemon/5.6.4/) instead of the project root - so it scanned the wrong directory and could not find the report stylesheet, failing ./gradlew clean assemble.

Switched to absolute paths (project.projectDir / project.buildDir). Verified assemble now passes with :rat succeeding.

The :rat task used relative paths, which the Gradle daemon's embedded Ant
builder resolves against the daemon working directory
(~/.gradle/daemon/5.6.4/) instead of the project root - so it scanned the
wrong directory and could not find the report stylesheet, failing
`./gradlew clean assemble`.

Switched to absolute paths (project.projectDir / project.buildDir).
Verified `assemble` now passes with :rat succeeding.
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.

1 participant