fmt-maven-plugin
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>dev.openjavaformat</groupId>
<artifactId>fmt-maven-plugin</artifactId>
<version>2.27.0.1</version>
</dependency><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.spotify</groupId>
<artifactId>foss-root</artifactId>
<version>18</version>
</parent>
<groupId>dev.openjavaformat</groupId>
<artifactId>fmt-maven-plugin</artifactId>
<version>2.27.0.1</version>
<packaging>maven-plugin</packaging>
<name>${project.groupId}:${project.artifactId}</name>
<description>Maven Plugin that formats a project's Java Code with open-java-format
</description>
<url>https://github.com/openjavaformat/fmt-maven-plugin</url>
<licenses>
<license>
<name>MIT License</name>
<url>http://www.opensource.org/licenses/mit-license.php</url>
</license>
</licenses>
<developers>
<developer>
<name>Andreas Folkesson</name>
<organization>Spotify</organization>
<organizationUrl>http://github.com/spotify</organizationUrl>
</developer>
<developer>
<name>Caesar Ralf</name>
<organization>Spotify</organization>
<organizationUrl>http://github.com/spotify</organizationUrl>
</developer>
<developer>
<name>Klara Ward</name>
<organization>Spotify</organization>
<organizationUrl>http://github.com/spotify</organizationUrl>
</developer>
<developer>
<name>Pierre-Alexandre St-Jean</name>
<organization>Coveo</organization>
<organizationUrl>http://github.com/coveo</organizationUrl>
</developer>
<developer>
<name>Guillaume Simard</name>
<organization>Coveo</organization>
<organizationUrl>http://github.com/coveo</organizationUrl>
</developer>
<developer>
<name>Martin Laporte</name>
<organization>Coveo</organization>
<organizationUrl>http://github.com/coveo</organizationUrl>
</developer>
<developer>
<name>Andy Emond</name>
<organization>Coveo</organization>
<organizationUrl>http://github.com/coveo</organizationUrl>
</developer>
</developers>
<scm>
<connection>scm:git:git@github.com:openjavaformat/fmt-maven-plugin.git</connection>
<developerConnection>scm:git:git@github.com:openjavaformat/fmt-maven-plugin.git</developerConnection>
<url>https://github.com/openjavaformat/fmt-maven-plugin</url>
<tag>HEAD</tag>
</scm>
<properties>
<!-- open-java-format is compiled for Java 21, so the plugin cannot run on anything older. -->
<java.version>21</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.build.outputTimestamp>1790366562</project.build.outputTimestamp>
<maven.version>3.9.6</maven.version>
<!-- The version the plugin is compiled and tested against. Builds that use the plugin name their own. -->
<open-java-format.version>2.98.0.3</open-java-format.version>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>${maven.version}</version>
</dependency>
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-annotations</artifactId>
<version>3.10.1</version>
<scope>provided</scope>
</dependency>
<!--
Provided: the plugin does not bring a formatter of its own. A build adds open-java-format to the
plugin's <dependencies> with the version it formats with, and AbstractFMT fails early without it.
-->
<dependency>
<groupId>dev.openjavaformat</groupId>
<artifactId>open-java-format</artifactId>
<version>${open-java-format.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.maven.plugin-testing</groupId>
<artifactId>maven-plugin-testing-harness</artifactId>
<version>3.3.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-core</artifactId>
<version>${maven.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-compat</artifactId>
<version>${maven.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.truth</groupId>
<artifactId>truth</artifactId>
<version>1.3.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>5.19.0</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>license-maven-plugin</artifactId>
<configuration combine.children="append">
<licenseName>mit</licenseName>
<licenseFile>LICENSE</licenseFile>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-invoker-plugin</artifactId>
<version>3.2.2</version>
<configuration>
<showVersion>true</showVersion>
<goals>verify</goals>
<!-- target/invoker-reports/TEST-*.xml, for the test report CI publishes -->
<writeJunitReport>true</writeJunitReport>
</configuration>
<executions>
<execution>
<id>integration-test</id>
<goals>
<goal>install</goal>
<goal>run</goal>
</goals>
<configuration>
<projectsDirectory>src/test/resources</projectsDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>3.11.0</version>
<configuration>
<goalPrefix>fmt</goalPrefix>
<skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
</configuration>
<executions>
<execution>
<id>mojo-descriptor</id>
<goals>
<goal>descriptor</goal>
</goals>
</execution>
<execution>
<id>help-goal</id>
<goals>
<goal>helpmojo</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Maven Central takes a jar only with its sources and javadoc next to it. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<!--
Signs what `mvn deploy -DaltDeploymentRepository=local::file:target/staging-deploy` staged and
publishes it to Maven Central. .github/workflows/release.yml runs it on a tag; with
-Djreleaser.dry.run=true it rehearses without uploading.
-->
<plugin>
<groupId>org.jreleaser</groupId>
<artifactId>jreleaser-maven-plugin</artifactId>
<version>1.26.0</version>
<configuration>
<jreleaser>
<project>
<license>MIT</license>
</project>
<!-- Maven Central only: no GitHub release. -->
<release>
<github>
<enabled>false</enabled>
</github>
</release>
<!--
The key comes from JRELEASER_GPG_SECRET_KEY and JRELEASER_GPG_PASSPHRASE. There is no
public key to check the signatures against, hence verify = false.
-->
<signing>
<pgp>
<active>ALWAYS</active>
<armored>true</armored>
<verify>false</verify>
</pgp>
</signing>
<deploy>
<maven>
<mavenCentral>
<!--
The deployer's name selects its credentials: the Central Portal user token, as
JRELEASER_DEPLOY_MAVEN_MAVENCENTRAL_SONATYPE_USERNAME and _PASSWORD. Uploads, waits
for the Portal to validate the deployment and publishes it, without waiting for
Maven Central to serve the files.
-->
<sonatype>
<active>ALWAYS</active>
<url>https://central.sonatype.com/api/v1/publisher</url>
<namespace>dev.openjavaformat</namespace>
<applyMavenCentralRules>true</applyMavenCentralRules>
<skipPublicationCheck>true</skipPublicationCheck>
<!-- Releases only: a -SNAPSHOT version is never deployed. -->
<snapshotSupported>false</snapshotSupported>
<stagingRepositories>
<stagingRepository>target/staging-deploy</stagingRepository>
</stagingRepositories>
</sonatype>
</mavenCentral>
</maven>
</deploy>
</jreleaser>
</configuration>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.2.2</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<configuration>
<tagNameFormat>@{project.version}</tagNameFormat>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>