Skip to content

Conversation

blutorange
Copy link
Contributor

@blutorange blutorange commented Jul 9, 2025

Not urgent, so feel free to merge and release when you have time.

Starting with biome 2.0, they now allow specifying a configuration file directly. Previously, we had to specify a folder that had to contain a biome.json file. This can be useful when you need to adjust some biome settings for use with spotless. biome now allows creating a config file that inherits from another file, and overwrite only selected settings.

This PR adjust the spotless wrapper for biome to allow specifying configuration files directly, and adds a test for that scenario.

For example:

// biome-spotless.json { "extends": ["./biome.json"], "files": { "includes": ["**"] } }
// biome.json { "$schema": "https://biomejs.dev/schemas/2.1.1/schema.json", "formatter": { "enabled": true, "indentStyle": "space", "indentWidth": 2, "lineWidth": 120 }, "files": { "maxSize": 5097152, "includes": [] } }
<biome> <configPath>${project.basedir}/biome-spotless.json</configPath> </biome>

After creating the PR, please add a commit that adds a bullet-point under the [Unreleased] section of CHANGES.md, plugin-gradle/CHANGES.md, and plugin-maven/CHANGES.md which includes:

  • a summary of the change
  • either
    • a link to the issue you are resolving (for small changes)
    • a link to the PR you just created (for big changes likely to have discussion)

If your change only affects a build plugin, and not the lib, then you only need to update the plugin-foo/CHANGES.md for that plugin.

If your change affects lib in an end-user-visible way (fixing a bug, updating a version) then you need to update CHANGES.md for both the lib and all build plugins. Users of a build plugin shouldn't have to refer to lib to see changes that affect them.

This makes it easier for the maintainers to quickly release your changes :)

@nedtwigg nedtwigg merged commit b7c829e into diffplug:main Jul 16, 2025
17 checks passed
@nedtwigg
Copy link
Member

Published in plugin-gradle 7.2.0 and plugin-maven 2.46.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants