classpath-shrinker


License

License

BSD
Categories

Categories

Scala Languages
GroupId

GroupId

ch.epfl.scala
ArtifactId

ArtifactId

classpath-shrinker_2.11
Last Version

Last Version

0.1.1
Release Date

Release Date

Type

Type

jar
Description

Description

classpath-shrinker
classpath-shrinker
Project URL

Project URL

https://github.com/scalacenter/classpath-shrinker
Project Organization

Project Organization

ch.epfl.scala
Source Code Management

Source Code Management

https://github.com/scalacenter/classpath-shrinker

Download classpath-shrinker_2.11

How to add to project

<!-- https://jarcasting.com/artifacts/ch.epfl.scala/classpath-shrinker_2.11/ -->
<dependency>
    <groupId>ch.epfl.scala</groupId>
    <artifactId>classpath-shrinker_2.11</artifactId>
    <version>0.1.1</version>
</dependency>
// https://jarcasting.com/artifacts/ch.epfl.scala/classpath-shrinker_2.11/
implementation 'ch.epfl.scala:classpath-shrinker_2.11:0.1.1'
// https://jarcasting.com/artifacts/ch.epfl.scala/classpath-shrinker_2.11/
implementation ("ch.epfl.scala:classpath-shrinker_2.11:0.1.1")
'ch.epfl.scala:classpath-shrinker_2.11:jar:0.1.1'
<dependency org="ch.epfl.scala" name="classpath-shrinker_2.11" rev="0.1.1">
  <artifact name="classpath-shrinker_2.11" type="jar" />
</dependency>
@Grapes(
@Grab(group='ch.epfl.scala', module='classpath-shrinker_2.11', version='0.1.1')
)
libraryDependencies += "ch.epfl.scala" % "classpath-shrinker_2.11" % "0.1.1"
[ch.epfl.scala/classpath-shrinker_2.11 "0.1.1"]

Dependencies

compile (2)

Group / Artifact Type Version
org.scala-lang : scala-compiler jar 2.11.8
org.scala-lang : scala-library jar 2.11.8

test (4)

Group / Artifact Type Version
junit : junit jar 4.12
com.novocode : junit-interface jar 0.11
io.get-coursier : coursier_2.11 jar 1.0.0-M15
io.get-coursier : coursier-cache_2.11 jar 1.0.0-M15

Project Modules

There are no modules declared in this project.

Classpath Shrinker

Build Status Maven Central

(This project is completed and currently not maintained by anyone)

The Classpath Shrinker is a scalac plugin to detect unused classpath entries. It was originally created by Jason Zaugg as a better alternative to a commit which fulfilled the same functionality but required the instrumentation of symbol initializers.

This plugin is now maintained by the Scala Center.

The creation of this plugin was motivated by SCP-009: Improve direct dependency experience, and complements the improvements to stub error messages available in 2.12.2 and 2.11.9.

If you use Pants or Bazel, you may find this compiler plugin useful.

Add to your project

resolvers += Resolver.bintrayRepo("scalacenter", "releases")
addCompilerPlugin("ch.epfl.scala" %% "classpath-shrinker" % "0.1.1")

Once it's added, it will report if there are unused classpath entries automatically.

Output looks like:

[info] Compiling 1 Scala source to /drone/src/github.com/scalacenter/classpath-shrinker/example/target/scala-2.12/classes...
[warn] Detected the following unused classpath entries: 
[warn] /.coursier-cache/https/repo1.maven.org/maven2/com/google/guava/guava/21.0/guava-21.0.jar
[warn] one warning found
ch.epfl.scala

Scala Center

Versions

Version
0.1.1
0.1.0