From a6b6ec0e666a074fb3552eeb49732bda8ea59663 Mon Sep 17 00:00:00 2001 From: Ned Twigg Date: Sat, 28 Jan 2023 00:05:05 -0800 Subject: [PATCH] Java 17 workaround until https://github.com/diffplug/spotless/pull/1304 gets merged --- src/main/resources/spotless/freshmark.gradle | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/resources/spotless/freshmark.gradle b/src/main/resources/spotless/freshmark.gradle index d039ee9..cd986d7 100644 --- a/src/main/resources/spotless/freshmark.gradle +++ b/src/main/resources/spotless/freshmark.gradle @@ -35,6 +35,12 @@ spotless { ratchetFrom null } } +// until this gets merged https://github.com/diffplug/spotless/pull/1304 +tasks.named('spotlessFreshmark') { + if (JavaVersion.current().isJava12Compatible()) { + enabled = false + } +} // if spotlessChangelog was applied to this project, use that to // reformat the markdown files after the changelog has been bumped