Skip to content

Maven custom rule for enforcer plugin to check all dependencies don't have restricted versions.

License

Notifications You must be signed in to change notification settings

DaniilRoman/dependency_restricted_version_checker

Repository files navigation

Enforcer custom rule to ckeck restricted dependency's versions

Plugin is going to check project doesn't have depdendecy's versions like RELEASE, SNAPSHOT or others dynamic changing versions.

Usage

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-enforcer-plugin</artifactId>
                <version>3.0.0</version>
                <dependencies>
                    <dependency>
                        <groupId>io.github.DaniilRoman</groupId>
                        <artifactId>dependency_restricted_version_checker</artifactId>
                        <version>1.0</version>
                    </dependency>
                </dependencies>
                <executions>
                    <execution>
                        <id>enforce</id>
                        <configuration>
                            <rules>
                                <myCustomRule implementation="RestrictDependencyVersionRule">
                                    <enabled>false</enabled>
                                </myCustomRule>
                            </rules>
                        </configuration>
                        <goals>
                            <goal>enforce</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

Dependency

Maven

<dependency>
    <groupId>io.github.DaniilRoman</groupId>
    <artifactId>dependency_restricted_version_checker</artifactId>
    <version>1.0</version>
</dependency>

About

Maven custom rule for enforcer plugin to check all dependencies don't have restricted versions.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages