Classpath Hell Gradle Plugin

Gradle plugin, breaks the build on class path collisions

License

License

Categories

Categories

Gradle Build Tools
GroupId

GroupId

io.vacco
ArtifactId

ArtifactId

io.vacco.cphell.gradle.plugin
Last Version

Last Version

1.8.0
Release Date

Release Date

Type

Type

pom.sha512
Description

Description

Classpath Hell Gradle Plugin
Gradle plugin, breaks the build on class path collisions
Project URL

Project URL

https://github.com/vaccovecrana/classpath-hell-gradle-plugin
Source Code Management

Source Code Management

https://github.com/vaccovecrana/classpath-hell-gradle-plugin.git

Download io.vacco.cphell.gradle.plugin

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

classpathHell - Classpath Mayhem Detector

Statically typed implementation of portingle/classpathHell

It's far too easy to end up with multiple copies of a class or resource on your classpath leading to runtime errors that, due to classpath ordering instability, might not show up until late in your release cycle, or possibly even production.

classpathHell is a gradle plugin that breaks the build if there are classpath collisions.

Configuration

classpathHell {
  configurationsToScan = [configurations.runtime]
  suppressExactDupes = true
  resourceExclusions = ["somePath/", ".*class"] // pattern matches on resource path
  resourceExclusions.addAll([".*/", "anotherPath/.*"])
  artifactExclusions = [".*hamcrest-core.*"]
}
./gradlew checkClasspath
build.dependsOn(["checkClasspath"])
io.vacco

Vaccove Crana, LLC.

Versions

Version
1.8.0