Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Use Gradle user home directory for downloading biome, fixes #2187 #2260

Merged
merged 2 commits into from
Sep 27, 2024

Conversation

blutorange
Copy link
Contributor

@blutorange blutorange commented Sep 12, 2024

Fixes #2187. Use the Gradle user home directory by default for the download directory for the biome executable. Previously, the plugin tried to use Maven's home directory, which is not always accessible by a Gradle plugin. According to the Gradle docs, the user home directory

is used to cache downloaded resources, compiled build scripts and so on.

From that description, it seems to me to be the proper location for the biome executable. It also says Never returns null., so I think it's safe to use. Unless somebody with more experience with Gradle says otherwise?

Please DO NOT FORCE PUSH. Don't worry about messy history, it's easier to do code review if we can tell what happened after the review, and force pushing breaks that.

  • a summary of the change
  • either
    • a link to the issue you are resolving (for small changes)

awa-xima and others added 2 commits September 12, 2024 20:06
…2187

Use the Gradle user home directory by default for the download directory for the biome executable.
Previously, the plugin tried to use Maven's home directory, which is not always accessible by a Gradle plugin.
According to the [Gradle docs](https://docs.gradle.org/current/kotlin-dsl/gradle/org.gradle.api.invocation/-gradle/get-gradle-user-home-dir.html),
the user home directory

> is used to cache downloaded resources, compiled build scripts and so on.

From that description, it seems to me to be the proper location for the biome executable.
@blutorange
Copy link
Contributor Author

Fixed the merge conflict, it was just the readme

@nedtwigg nedtwigg merged commit c9a0abe into diffplug:main Sep 27, 2024
16 checks passed
@nedtwigg
Copy link
Member

Released in plugin-gradle 7.0.0.BETA3 and plugin-maven 2.44.0.BETA3.

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.

JSON Biome Step breaks Gradle Dependency Resolution Management
3 participants