forked from ASSERT-KTH/depclean
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Processors should be considered as rightful dependencies (ASSERT-KTH#82)
Co-authored-by: Alexandre Fillatre <[email protected]> Co-authored-by: cesarsotovalero <[email protected]>
- Loading branch information
1 parent
1ccbba2
commit 9bcdadc
Showing
4 changed files
with
177 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
90 changes: 90 additions & 0 deletions
90
...maven-plugin/src/test/resources-its/se/kth/depclean/DepCleanMojoIT/processor_used/pom.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
<?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> | ||
|
||
<mapstruct.version>1.4.2.Final</mapstruct.version> | ||
</properties> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>com.fasterxml.jackson.core</groupId> | ||
<artifactId>jackson-databind</artifactId> | ||
<version>2.12.2</version> | ||
<!--<scope>test</scope>--> | ||
</dependency> | ||
<!-- Include only this mapstruct dependency to fix issue #76 --> | ||
<dependency> | ||
<groupId>org.mapstruct</groupId> | ||
<artifactId>mapstruct-processor</artifactId> | ||
<version>${mapstruct.version}</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
</dependencies> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>com.soebes.itf.jupiter.extension</groupId> | ||
<artifactId>itf-failure-plugin</artifactId> | ||
<version>0.9.0</version> | ||
<executions> | ||
<execution> | ||
<id>first_very_simple</id> | ||
<phase>initialize</phase> | ||
<goals> | ||
<goal>failure</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.bsc.maven</groupId> | ||
<artifactId>maven-processor-plugin</artifactId> | ||
<version>5.0-jdk8-rc1</version> | ||
<executions> | ||
<execution> | ||
<id>process</id> | ||
<goals> | ||
<goal>process</goal> | ||
</goals> | ||
<phase>generate-sources</phase> | ||
<configuration> | ||
<processors> | ||
<!-- Be sure to consider processors as rightful dependencies --> | ||
<processor>org.mapstruct.ap.MappingProcessor</processor> | ||
</processors> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>se.kth.castor</groupId> | ||
<artifactId>depclean-maven-plugin</artifactId> | ||
<version>${project.version}</version> | ||
<executions> | ||
<execution> | ||
<goals> | ||
<goal>depclean</goal> | ||
</goals> | ||
<!--<configuration>--> | ||
<!-- <failIfUnusedDirect>true</failIfUnusedDirect>--> | ||
<!-- <ignoreScopes>test,provided,import,runtime</ignoreScopes>--> | ||
<!--</configuration>--> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |
9 changes: 9 additions & 0 deletions
9
.../test/resources-its/se/kth/depclean/DepCleanMojoIT/processor_used/src/main/java/Main.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// import com.fasterxml.jackson.databind.ObjectMapper; | ||
import com.fasterxml.jackson.core.util.Separators; | ||
|
||
|
||
public class Main { | ||
// private static final ObjectMapper converter = new ObjectMapper(); | ||
Separators separators = new Separators(); | ||
int field = 42; | ||
} |