Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-32847

Add Spotless Maven Plugin to CI build

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2025.x, 2023.18
    • Component/s: CI/CD
    • Release Notes Summary:
      The Nuxeo code formatting is now checked as part of our validation tests
    • Tags:
    • Team:
      PLATFORM
    • Sprint:
      nxplatform #120, nxplatform #121
    • Story Points:
      5

      Description

      The Spotless Maven Plugin could help us to maintain code formatting within Nuxeo code.

      The plugin has many configuration options to deal with code formatting, cleanup, etc...
      For this task, we're only interested in the eclipse formatting and the import order.

      The plugin should not be enabled by default, we don't want to break the customer code depending on the nuxeo-parent module.

      A new CI step will be added to check that formatting has been performed on the modified files only. A PR status check will also be added.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: