Skip to content

v2.5.0

Latest
Compare
Choose a tag to compare
@skuzzle skuzzle released this 25 Jan 08:14
· 9 commits to master since this release

Maven Central Gradle Plugin Portal

Note

This is the first release after migrating our build to Gradle and which uses shaded dependencies.
If you encounter any irregularities with this version, please do not hesitate to file an issue.

Features

  • #38 Dependencies are shaded into plugin artifacts
  • #59 Provide a Gradle plugin
  • #113 Print absolute paths in exception messages to make IntelliJ render clickable links

maven

<dependency>
    <groupId>de.skuzzle.enforcer</groupId>
    <artifactId>restrict-imports-enforcer-rule</artifactId>
    <version>2.5.0</version>
</dependency>

Gradle plugin DSL

plugins {
  id("de.skuzzle.restrict.imports") version "2.5.0"
}

Gradle Legacy

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("de.skuzzle.enforcer:restrict-imports-gradle-plugin:2.5.0")
  }
}

apply(plugin = "de.skuzzle.restrict.imports")

Gradle version catalog (Toml)

[plugins]
restrictImports = { id = "de.skuzzle.restrict.imports", version = "2.5.0" }