Skip to content

Commit

Permalink
Updated version and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Ozsie committed Sep 11, 2020
1 parent be08385 commit 62c2237
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 7 deletions.
38 changes: 33 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ A maven plugin that wraps the Detekt CLI. It supports the same parameters as the
<plugin>
<groupId>com.github.ozsie</groupId>
<artifactId>detekt-maven-plugin</artifactId>
<version>1.12.0</version>
<version>1.13.0</version>
<executions>
<execution>
<phase>verify</phase>
Expand All @@ -29,7 +29,7 @@ A maven plugin that wraps the Detekt CLI. It supports the same parameters as the
```
Using the above configuration, Detekt will scan source files in _${basedir}/src_ and output the results in _${basedir}/detekt_.

All parameters available to Detekt version _1.12.0_ can be configured in
All parameters available to Detekt version _1.13.0_ can be configured in
the plugin.


Expand All @@ -40,7 +40,7 @@ the plugin.
<plugin>
<groupId>com.github.ozsie</groupId>
<artifactId>detekt-maven-plugin</artifactId>
<version>1.12.0</version>
<version>1.13.0</version>
<executions>
<execution>
<phase>verify</phase>
Expand All @@ -65,7 +65,7 @@ Or
<plugin>
<groupId>com.github.ozsie</groupId>
<artifactId>detekt-maven-plugin</artifactId>
<version>1.12.0</version>
<version>1.13.0</version>
<executions>
<execution>
<phase>verify</phase>
Expand All @@ -91,7 +91,7 @@ Or
<plugin>
<groupId>com.github.ozsie</groupId>
<artifactId>detekt-maven-plugin</artifactId>
<version>1.12.0</version>
<version>1.13.0</version>
<executions>
<execution>
<phase>verify</phase>
Expand All @@ -108,6 +108,34 @@ Or
</plugins>
</build>
```
Alternatively, the configuration can be placed outside of the
`<executions>`. This allows the configuration be used when running goals
standalone

```xml
<build>
<plugins>
<plugin>
<groupId>com.github.ozsie</groupId>
<artifactId>detekt-maven-plugin</artifactId>
<version>1.13.0</version>
<configuration>
<report>
<report>txt:reports/detekt.txt</report>
<report>xml:reports/detekt.xml</report>
</report>
</configuration>
<executions>
<execution>
<phase>verify</phase>
<goals><goal>check</goal></goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
```

### Goals
***check***

Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>com.github.ozsie</groupId>
<artifactId>detekt-maven-plugin</artifactId>
<version>1.12.0</version>
<version>1.13.0</version>
<packaging>maven-plugin</packaging>

<name>detekt-maven-plugin Maven Plugin</name>
Expand Down Expand Up @@ -61,7 +61,7 @@
<jacoco-maven-plugin.version>0.8.5</jacoco-maven-plugin.version>
<nexus-staging-maven-plugin.version>1.6.8</nexus-staging-maven-plugin.version>
<maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
<detekt-maven-plugin.version>1.10.0</detekt-maven-plugin.version>
<detekt-maven-plugin.version>1.12.0</detekt-maven-plugin.version>
</properties>

<dependencies>
Expand Down

0 comments on commit 62c2237

Please sign in to comment.