Use tile filtering to specify dependencies in pom

This will enable better detection of dependency upgrades.
This commit is contained in:
Paul Campbell 2018-08-27 09:02:57 +01:00
parent 058a539354
commit 1eba91f3ba
2 changed files with 41 additions and 13 deletions

View file

@ -19,8 +19,43 @@
<properties> <properties>
<tiles-maven-plugin.version>2.12</tiles-maven-plugin.version> <tiles-maven-plugin.version>2.12</tiles-maven-plugin.version>
<kemitix-tiles.version>0.8.1</kemitix-tiles.version> <kemitix-tiles.version>0.8.1</kemitix-tiles.version>
<maven-checkstyle-plugin.version>3.0.0</maven-checkstyle-plugin.version>
<checkstyle.version>8.12</checkstyle.version>
<sevntu.version>1.32.0</sevntu.version>
<kemitix.checkstyle.ruleset.version>DEV-SNAPSHOT</kemitix.checkstyle.ruleset.version>
<kemitix.checkstyle.ruleset.level>5-complexity</kemitix.checkstyle.ruleset.level>
<kemitix.checkstyle.ruleset.location>net/kemitix/checkstyle-${kemitix.checkstyle.ruleset.level}.xml</kemitix.checkstyle.ruleset.location>
</properties> </properties>
<dependencies>
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>${checkstyle.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>${maven-checkstyle-plugin.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.github.sevntu-checkstyle</groupId>
<artifactId>sevntu-checkstyle-maven-plugin</artifactId>
<version>${sevntu.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>net.kemitix.checkstyle</groupId>
<artifactId>kemitix-checkstyle-ruleset</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
<build> <build>
<plugins> <plugins>
<plugin> <plugin>
@ -29,6 +64,7 @@
<version>${tiles-maven-plugin.version}</version> <version>${tiles-maven-plugin.version}</version>
<extensions>true</extensions> <extensions>true</extensions>
<configuration> <configuration>
<filtering>true</filtering>
<tiles> <tiles>
<tile>net.kemitix.tiles:maven-plugins:${kemitix-tiles.version}</tile> <tile>net.kemitix.tiles:maven-plugins:${kemitix-tiles.version}</tile>
</tiles> </tiles>

View file

@ -1,37 +1,29 @@
<project> <project>
<properties>
<maven-checkstyle-plugin.version>3.0.0</maven-checkstyle-plugin.version>
<checkstyle.version>8.12</checkstyle.version>
<sevntu.version>1.32.0</sevntu.version>
<kemitix.checkstyle.ruleset.version>DEV-SNAPSHOT</kemitix.checkstyle.ruleset.version>
<kemitix.checkstyle.ruleset.level>5-complexity</kemitix.checkstyle.ruleset.level>
<kemitix.checkstyle.ruleset.location>net/kemitix/checkstyle-${kemitix.checkstyle.ruleset.level}.xml</kemitix.checkstyle.ruleset.location>
</properties>
<build> <build>
<plugins> <plugins>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId> <artifactId>maven-checkstyle-plugin</artifactId>
<version>${maven-checkstyle-plugin.version}</version> <version>@maven-checkstyle-plugin.version@</version>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>com.puppycrawl.tools</groupId> <groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId> <artifactId>checkstyle</artifactId>
<version>${checkstyle.version}</version> <version>@checkstyle.version@</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.github.sevntu-checkstyle</groupId> <groupId>com.github.sevntu-checkstyle</groupId>
<artifactId>sevntu-checkstyle-maven-plugin</artifactId> <artifactId>sevntu-checkstyle-maven-plugin</artifactId>
<version>${sevntu.version}</version> <version>@sevntu.version@</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>net.kemitix.checkstyle</groupId> <groupId>net.kemitix.checkstyle</groupId>
<artifactId>ruleset</artifactId> <artifactId>ruleset</artifactId>
<version>${kemitix.checkstyle.ruleset.version}</version> <version>@kemitix.checkstyle.ruleset.version@</version>
</dependency> </dependency>
</dependencies> </dependencies>
<configuration> <configuration>
<configLocation>${kemitix.checkstyle.ruleset.location}</configLocation> <configLocation>@kemitix.checkstyle.ruleset.location@</configLocation>
<sourceDirectories> <sourceDirectories>
<sourceDirectory>${build.sourceDirectory}</sourceDirectory> <sourceDirectory>${build.sourceDirectory}</sourceDirectory>
</sourceDirectories> </sourceDirectories>