Skip to content

Execute Multiple Formattings #2617

@Sven-Schneider

Description

@Sven-Schneider

Hi, I would like to run the java guave formatting (for producing deterministic outputs) and an eclipse based formatting (for fixing the guava formatting deterministically) using an intellij exported xml formatting.

My pom.xml contains the following. But I suspect that only the latter is actually executed.

<plugin>
    <groupId>com.diffplug.spotless</groupId>
    <artifactId>spotless-maven-plugin</artifactId>
    <version>2.46.1</version>
    <executions>
        <execution>
            <goals>
                <goal>apply</goal>
            </goals>
        </execution>
    </executions>
    <configuration>
        <java>
            <googleJavaFormat>
                <version>1.22.0</version>
            </googleJavaFormat>
        </java>
        <java>
            <eclipse>
                <file>${project.basedir}/config/eclipse-java-style.xml</file>
            </eclipse>
        </java>
    </configuration>
</plugin>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions