scijava / scijava-maven-plugin

A Maven plugin to manage development of SciJava-based software.
BSD 2-Clause "Simplified" License
3 stars 5 forks source link

Add enforcer rule to fail when direct dependency <version> is declared #16

Open ctrueden opened 6 years ago

ctrueden commented 6 years ago

All dependency version declarations should be of the form:

<groupId>foo</groupId>
<artifactId>bar</artifactId>
<version>${bar.version}</version>

Otherwise, the melting-pot script, and potentially other tooling like that, will not be able to override the versions at build time.

It is really unintuitive though, so no one knows to do this without being told. Let's let the tooling tell people for us, by failing the build when this situation is detected.