Alternatively investigate: https://github.com/ec4j inline with JAVA-3922.
The only Gradle plugin ec4j has is https://github.com/ec4j/editorconfig-gradle-plugin, and it seems dormant (the last commit was 2 years ago) and outdated (the last commit to https://github.com/ec4j/editorconfig-maven-plugin is 2 month old, so the ec4j team does work on plugins, but not on the Gradle plugin).
editorconfig.org points to only one Gradle plugin, which is https://github.com/ec4j/editorconfig-gradle-plugin. Searching the Internet also does not provide any other Gradle plugins.
I am inclined to think that starting to use a dormant plugin is a good idea. Taking into account that Spotless plugin for Gradle does not support the EditorConfig format, we have to chose either using .editorconfig checked in a repo (flexible settings, but no way to enforce the format by having a pre-commit hook), or using Spotless (we are limited to using one of the few pre-configured formats, but are able to create a pre-commit hook). This was briefly discussed during the JVM triage meeting on 20201-Jan-11, and the decision was to use .editorconfig (though I personally would prefer having a pre-commit hook, which means using Spotless).
|