Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Work around apparent bug in Gradle 6.1 DirectoryProperty#file #411

Merged
merged 1 commit into from
Sep 20, 2021

Conversation

benjamin-bader
Copy link
Collaborator

On Gradle 6.1.1, getParameters().getOutputDirectory().file("summary.csv") was failing with an error about not being able to make an absolute path from "summary.csv". Debugging confirms that we do in fact have an absolute project path stuffed into those parameters, and I'm not clear on why this error happens. It definitely works correctly in Gradle 6.5 and later.

Working around the bug by using the File(File, String) constructor instead.

Also fixing one missed Kotlin string interpolation that I missed in the earlier migration.

Fixes #410

@benjamin-bader benjamin-bader merged commit 1951f2d into master Sep 20, 2021
@benjamin-bader benjamin-bader deleted the fix-gradle-6.1.1 branch September 20, 2021 15:01
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

I have an error: "Cannot convert relative path summary.csv to an absolute file. "
1 participant