Skip to content

Commit

Permalink
Add missing project necessary for IT
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarsotovalero committed Apr 17, 2021
1 parent 6d7b008 commit 93fceaa
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>org.foo.bar</groupId>
<artifactId>foobar</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>foobar</name>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
</properties>

<dependencies>
<dependency>
<groupId>com.jcabi</groupId>
<artifactId>jcabi-manifests</artifactId>
<version>1.1</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.8.0</version>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.15</version>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>se.kth.castor</groupId>
<artifactId>depclean-maven-plugin</artifactId>
<version>2.0.2-SNAPSHOT</version>
<executions>
<execution>
<goals>
<goal>depclean</goal>
</goals>
<configuration>
<createResultJson>true</createResultJson>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package org;

import org.apache.commons.codec.Charsets;

public class UseCommonsCodec {

public static void main(String[] args) {
System.out.println(Charsets.UTF_8);
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package org;

import com.jcabi.manifests.Manifests;

public class UseJcabiManifest {

public static void main(String[] args) {
Manifests manifests = new Manifests();
System.out.println(manifests.size());
}
}
18 changes: 9 additions & 9 deletions depclean-maven-plugin/src/test/resources/depclean-results.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"version": "1.0.0-SNAPSHOT",
"packaging": "jar",
"omitted": false,
"size": 1693,
"size": 1284,
"type": "unknown",
"status": "unknown",
"parent": "unknown",
Expand Down Expand Up @@ -172,7 +172,7 @@
"omitted": false,
"size": 285424,
"type": "direct",
"status": "used",
"status": "bloated",
"parent": "org.foo.bar:foobar:jar:1.0.0-SNAPSHOT",
"allTypes": [
"org.apache.commons.io.LineIterator",
Expand Down Expand Up @@ -358,10 +358,8 @@
"org.apache.commons.io.filefilter.CanWriteFileFilter",
"org.apache.commons.io.input.CircularInputStream"
],
"usedTypes": [
"org.apache.commons.io.Charsets"
],
"usageRatio": 0.005494505494505495,
"usedTypes": [],
"usageRatio": 0.0,
"children": []
},
{
Expand All @@ -375,7 +373,7 @@
"omitted": false,
"size": 353793,
"type": "direct",
"status": "bloated",
"status": "used",
"parent": "org.foo.bar:foobar:jar:1.0.0-SNAPSHOT",
"allTypes": [
"org.apache.commons.codec.EncoderException",
Expand Down Expand Up @@ -485,8 +483,10 @@
"org.apache.commons.codec.language.bm.RuleType",
"org.apache.commons.codec.language.bm.Languages$SomeLanguages"
],
"usedTypes": [],
"usageRatio": 0.0,
"usedTypes": [
"org.apache.commons.codec.Charsets"
],
"usageRatio": 0.009433962264150943,
"children": []
}
]
Expand Down

0 comments on commit 93fceaa

Please sign in to comment.