Maybe a check like this?
https://github.com/apache/lucene/pull/802

On Thu, Apr 7, 2022 at 9:26 PM Dawid Weiss <dawid.we...@gmail.com> wrote:

> Does spotless have an option to fork (like the old ant fork=true),
>>
>
> I don't know but I don't think so. It's a plain plugin for gradle, with
> its own set of dependencies. Gradle plugins are not forked - they run
> within the process (much like ant tasks).
>
>
>> Are all gradle spotless users having to do these things? Can they be
>> somewhere other than this file?
>
>
> I don't think there is any other way. The problem is not even spotless
> itself - it's the google formatting code that is a dependency of spotless
> that is causing problems here.
>
>
> https://github.com/diffplug/spotless/tree/main/plugin-gradle#google-java-format
> https://github.com/diffplug/spotless/issues/834
>
> You could run this plugin via methods other than the gradle integration
> layer (for example via forked ant). This has drawbacks though - no
> incremental inputs, worse reporting, etc.
>
> Dawid
>

Reply via email to