From 0b2a7d1a568a83488d09a3282c8ac7cfe38f153a Mon Sep 17 00:00:00 2001 From: Matyrobbrt <65940752+Matyrobbrt@users.noreply.github.com> Date: Thu, 15 Feb 2024 09:51:22 +0200 Subject: [PATCH] Update README.md --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 65eb796..4ae14ec 100644 --- a/README.md +++ b/README.md @@ -62,8 +62,15 @@ publishing { ### Spotless The `net.neoforged.gradleutils.spotless` plugin provides integration (a formatter configuration) with Spotless. +This plugin must be applied to the buildscript, as GradleUtils does not apply it automatically. +This plugin also requires Gradle to run with at least Java 11, much like Spotless does. -This plugin provides a `spotlessUtils` extension which has a `configure` method that can be called with the `spotless` extension to configure Spotless and use the formatter configuration provided by GradleUtils. +This plugin provides a `spotlessUtils` extension which has a `configure` method that can be called with the `spotless` extension to configure Spotless and use the formatter configuration provided by GradleUtils: +```gradle +spotlessUtils { + configure(spotless) +} +``` ## License