walkmod-import-cleaner-plugin

Walkmod plugin to remove unused imports of Java source files

License

License

GroupId

GroupId

org.walkmod
ArtifactId

ArtifactId

walkmod-imports-cleaner-plugin
Last Version

Last Version

2.0.3
Release Date

Release Date

Type

Type

jar
Description

Description

walkmod-import-cleaner-plugin
Walkmod plugin to remove unused imports of Java source files
Project URL

Project URL

https://github.com/rpau/walkmod-imports-cleaner-plugin
Source Code Management

Source Code Management

https://github.com/rpau/walkmod-imports-cleaner-plugin

Download walkmod-imports-cleaner-plugin

How to add to project

<!-- https://jarcasting.com/artifacts/org.walkmod/walkmod-imports-cleaner-plugin/ -->
<dependency>
    <groupId>org.walkmod</groupId>
    <artifactId>walkmod-imports-cleaner-plugin</artifactId>
    <version>2.0.3</version>
</dependency>
// https://jarcasting.com/artifacts/org.walkmod/walkmod-imports-cleaner-plugin/
implementation 'org.walkmod:walkmod-imports-cleaner-plugin:2.0.3'
// https://jarcasting.com/artifacts/org.walkmod/walkmod-imports-cleaner-plugin/
implementation ("org.walkmod:walkmod-imports-cleaner-plugin:2.0.3")
'org.walkmod:walkmod-imports-cleaner-plugin:jar:2.0.3'
<dependency org="org.walkmod" name="walkmod-imports-cleaner-plugin" rev="2.0.3">
  <artifact name="walkmod-imports-cleaner-plugin" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.walkmod', module='walkmod-imports-cleaner-plugin', version='2.0.3')
)
libraryDependencies += "org.walkmod" % "walkmod-imports-cleaner-plugin" % "2.0.3"
[org.walkmod/walkmod-imports-cleaner-plugin "2.0.3"]

Dependencies

compile (2)

Group / Artifact Type Version
org.walkmod : javalang jar [3.0.0, 4.0.0)
org.walkmod : walkmod-core jar [1.0.0,2.0.0)

test (1)

Group / Artifact Type Version
junit : junit jar 4.5

Project Modules

There are no modules declared in this project.

walkmod-imports-cleaner-plugin

Build Status

This is a walkmod plugin to remove unused imports in Java source files. It does not remove static or wildcard imports.

Usage

1) Verify that your walkmod version is > = 2.2.0

2) Execute the following command to add this code transformation plugin as part of your conventions.

walkmod add imports-cleaner

3) Now, You see the results, executing:

walkmod apply

Or, alternatively, you can also check which would be the modified classes typing:

walkmod check

Contributing

If you want to hack on this, fork it, improve it and send me a pull request.

To get started using it, just clone it and call mvn install.

Versions

Version
2.0.3
2.0.2
2.0.1
2.0
1.0