- #177 Support matching prefix, suffix and infix parts within a package pattern.
Maven dependency declaration
<dependency>
<groupId>de.skuzzle.enforcer</groupId>
<artifactId>restrict-imports-enforcer-rule</artifactId>
<version>2.6.0</version>
</dependency>
Gradle dependency declaration
Gradle plugin DSL
plugins {
id("de.skuzzle.restrictimports") version "2.6.0"
}
Gradle Legacy
buildscript {
repositories {
maven {
url = uri("https://plugins.gradle.org/m2/")
}
}
dependencies {
classpath("de.skuzzle.enforcer:restrict-imports-gradle-plugin:2.6.0")
}
}
apply(plugin = "de.skuzzle.restrictimports")
Gradle version catalog (Toml)
[plugins]
restrictImports = { id = "de.skuzzle.restrictimports", version = "2.6.0" }