examples: Enable maven enforcer requireUpperBoundDeps

Everyone using maven should really use the rule, in order to prevent
accidentally using an older version of a common library, like protobuf.
This commit is contained in:
Eric Anderson 2017-06-29 14:20:24 -07:00
parent 4edb352dd4
commit fe0f67337d
1 changed files with 18 additions and 0 deletions

View File

@ -74,6 +74,24 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.4.1</version>
<executions>
<execution>
<id>enforce</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireUpperBoundDeps/>
</rules>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>