Skip to content

Commit

Permalink
Prepare for major release 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarsotovalero committed Mar 9, 2021
1 parent 7e134f9 commit 2bff48e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 13 deletions.
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,8 @@
[![Duplicated Lines (%)](https://sonarcloud.io/api/project_badges/measure?project=castor-software_depclean&metric=duplicated_lines_density)](https://sonarcloud.io/dashboard?id=castor-software_depclean)
[![Technical Debt](https://sonarcloud.io/api/project_badges/measure?project=castor-software_depclean&metric=sqale_index)](https://sonarcloud.io/dashboard?id=castor-software_depclean)


[comment]: <> ([![Coverage]&#40;https://sonarcloud.io/api/project_badges/measure?project=castor-software_depclean&metric=coverage&#41;]&#40;https://sonarcloud.io/dashboard?id=castor-software_depclean&#41;)


## What is DepClean?

DepClean is a tool to automatically remove dependencies that are included in your Java dependency tree but are not
Expand Down Expand Up @@ -52,7 +50,7 @@ You can configure the `pom.xml` file of your Maven project to use DepClean as pa
<plugin>
<groupId>se.kth.castor</groupId>
<artifactId>depclean-maven-plugin</artifactId>
<version>1.1.3</version>
<version>2.0.0</version>
<executions>
<execution>
<goals>
Expand Down Expand Up @@ -86,7 +84,7 @@ For example, to fail the build in the presence of unused direct dependencies and
<plugin>
<groupId>se.kth.castor</groupId>
<artifactId>depclean-maven-plugin</artifactId>
<version>1.1.3</version>
<version>2.0.0</version>
<executions>
<execution>
<goals>
Expand All @@ -105,7 +103,7 @@ Of course, it is also possible to execute DepClean with parameters directly from
can be executed directly as follows:

```bash
mvn se.kth.castor:depclean-maven-plugin:1.1.3:depclean -DfailIfUnusedDirect=true -DignoreScopes=provided,test,runtime,system,import
mvn se.kth.castor:depclean-maven-plugin:2.0.0:depclean -DfailIfUnusedDirect=true -DignoreScopes=provided,test,runtime,system,import
```

## Installing and building from source
Expand Down Expand Up @@ -133,7 +131,7 @@ Once the plugin is installed, you can execute the `depclean` plugin goal directl
mvn compile
mvn compiler:testCompile
# Then, executed DepClean
mvn se.kth.castor:depclean-maven-plugin:1.1.3:depclean -DcreatePomDebloated=true -DcreateResultJson=true
mvn se.kth.castor:depclean-maven-plugin:2.0.0:depclean -DcreatePomDebloated=true -DcreateResultJson=true
```

This is an example of the output (note the dependencies are ordered according to the JAR size):
Expand Down
4 changes: 2 additions & 2 deletions depclean-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
<parent>
<groupId>se.kth.castor</groupId>
<artifactId>depclean-parent-pom</artifactId>
<version>1.1.3</version>
<version>2.0.0</version>
</parent>

<!-- Coordinates -->
<artifactId>depclean-core</artifactId>
<version>1.1.3</version>
<version>2.0.0</version>
<packaging>jar</packaging>
<description>Core library of DepClean</description>
<name>depclean-core</name>
Expand Down
7 changes: 3 additions & 4 deletions depclean-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@
<parent>
<groupId>se.kth.castor</groupId>
<artifactId>depclean-parent-pom</artifactId>
<version>1.1.3</version>
<version>2.0.0</version>
</parent>

<!-- Coordinates -->
<artifactId>depclean-maven-plugin</artifactId>
<version>1.1.3</version>

<version>2.0.0</version>
<packaging>maven-plugin</packaging>
<name>depclean-maven-plugin</name>

Expand Down Expand Up @@ -51,7 +50,7 @@
<dependency>
<groupId>se.kth.castor</groupId>
<artifactId>depclean-core</artifactId>
<version>1.1.3</version>
<version>2.0.0</version>
</dependency>
<!--Maven tools for plugin construction-->
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<!-- Coordinates -->
<groupId>se.kth.castor</groupId>
<artifactId>depclean-parent-pom</artifactId>
<version>1.1.3</version>
<version>2.0.0</version>
<packaging>pom</packaging>
<modelVersion>4.0.0</modelVersion>

Expand Down

0 comments on commit 2bff48e

Please sign in to comment.