ktlint-intellij-idea-integration
Used in: 1 component
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
Overview
Description
An anti-bikeshedding Kotlin linter with built-in formatter
Snippets
<dependency> <groupId>com.github.shyiko.ktlint</groupId> <artifactId>ktlint-intellij-idea-integration</artifactId> <version>0.11.1</version> </dependency>
Maven POM File
<?xml version="1.0" encoding="UTF-8"?> <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.github.shyiko.ktlint</groupId> <artifactId>pom</artifactId> <version>0.11.1</version> </parent> <artifactId>ktlint-intellij-idea-integration</artifactId> <scm> <connection>scm:git:git@github.com:shyiko/ktlint.git</connection> <developerConnection>scm:git:git@github.com:shyiko/ktlint.git</developerConnection> <url>git@github.com:shyiko/ktlint.git</url> </scm> <dependencies> <dependency> <groupId>com.github.shyiko.klob</groupId> <artifactId>klob</artifactId> <version>0.2.0</version> <classifier>kalvanized</classifier> </dependency> </dependencies> <profiles> <profile> <id>release</id> <activation> <property> <name>deploy</name> <value>maven-central</value> </property> </activation> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <version>3.0.1</version> <executions> <execution> <id>attach-sources</id> <phase>verify</phase> <goals> <goal>jar-no-fork</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>3.0.2</version> <executions> <execution> <id>attach-javadocs</id> <phase>verify</phase> <goals> <goal>jar</goal> </goals> <configuration> <classifier>javadoc</classifier> <classesDirectory>${basedir}/javadoc</classesDirectory> </configuration> </execution> </executions> </plugin> </plugins> </build> </profile> <profile> <id>capsule</id> <activation> <property> <name>deploy</name> <value>github</value> </property> </activation> <build> <defaultGoal>clean deploy</defaultGoal> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId> <version>3.0.0</version> <executions> <execution> <phase>package</phase> <goals> <goal>shade</goal> </goals> <configuration> <transformers> <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/> <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> <mainClass>com.github.shyiko.ktlint.idea.Main</mainClass> </transformer> </transformers> <createDependencyReducedPom>false</createDependencyReducedPom> <filters> <filter> <artifact>*:*</artifact> <excludes> <exclude>META-INF/*.SF</exclude> <exclude>META-INF/*.DSA</exclude> <exclude>META-INF/*.RSA</exclude> </excludes> </filter> </filters> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.skife.maven</groupId> <artifactId>really-executable-jar-maven-plugin</artifactId> <version>1.4.1</version> <configuration> <!-- -XX:+TieredCompilation can be used to speed things up but it was reported to cause OOMs and all sort of problems depending on which version of jre6 is used --> <flags>-Xmx512m</flags> <programFile>ktlint-intellij-idea-integration</programFile> </configuration> <executions> <execution> <phase>package</phase> <goals> <goal>really-executable-jar</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </profile> <profile> <id>deploy-to-github</id> <activation> <property> <name>deploy</name> <value>github</value> </property> </activation> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <version>1.7</version> <executions> <execution> <id>ktlint</id> <phase>verify</phase> <configuration> <target name="gpg-sign"> <exec executable="gpg" dir="${basedir}" failonerror="true"> <arg value="-ab"/> <arg value="${project.build.directory}/${project.artifactId}"/> </exec> </target> </configuration> <goals> <goal>run</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>de.jutzig</groupId> <artifactId>github-release-plugin</artifactId> <version>1.1.1</version> <configuration> <description>${project.version}</description> <releaseName>${project.version}</releaseName> <tag>${project.version}</tag> <artifact>${project.build.directory}/${project.artifactId}</artifact> <fileSets> <fileSet> <directory>${project.build.directory}</directory> <includes> <include>${project.artifactId}.asc</include> </includes> </fileSet> </fileSets> </configuration> <executions> <execution> <phase>deploy</phase> <goals> <goal>release</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </profile> </profiles> </project>