papercut icon indicating copy to clipboard operation
papercut copied to clipboard

Annotating a function with @Debt is not displaying any warning in console logs

Open frozenfire699 opened this issue 2 years ago • 3 comments

After annotating a class/function/variable in Java file with @Debt, running mvn clean install doesn't generate any warning about tech debt. POM is updated with both dependencies for compiler and annotations v 0.9.1

frozenfire699 avatar Jan 30 '22 00:01 frozenfire699

Is the compiler configured as an annotationProcessor?

Could you share the relevant parts of your POM please?

Stuie avatar Jan 31 '22 04:01 Stuie

Below is my configuration i added in POM.

  <!-- https://mvnrepository.com/artifact/ie.stu/papercut-compiler -->
        <dependency>
            <groupId>ie.stu</groupId>
            <artifactId>papercut-compiler</artifactId>
            <version>0.9.1</version>
        </dependency>

        <!-- https://mvnrepository.com/artifact/ie.stu/papercut-compiler -->
        <dependency>
            <groupId>ie.stu</groupId>
            <artifactId>papercut-annotations</artifactId>
            <version>0.9.1</version>
        </dependency>

After playing around, made the following observations

  1. WARNING shows up in console logs under maven-compiler-plugin only when the either description or addedDate properties are used. If i use any other property, console logs are not generated
  2. I was not able to find any link for report/documentation in console logs or my target folder, that can help me track all @Debt annotations in a single place. Using compiler console logs to track tech debt is practically impossible.

frozenfire699 avatar Jan 31 '22 16:01 frozenfire699

I'm not familiar with Maven, but I see that there are options for specifying annotation processors. Have you tried those?

Stuie avatar Jun 10 '22 18:06 Stuie

No response for a year and a half. Closing.

Stuie avatar Jan 20 '24 19:01 Stuie