nebula-plugins / gradle-lint-plugin

A pluggable and configurable linter tool for identifying and reporting on patterns of misuse or deprecations in Gradle scripts.
Apache License 2.0
771 stars 89 forks source link

Unused-dependecy message working with MapStruct library. #401

Open eduarbaron opened 9 months ago

eduarbaron commented 9 months ago

We are getting an error working with MapStruct library.

About MapStruct documentación we need add this two lines:

implementation 'org.mapstruct:mapstruct:1.5.2.Final'
annotationProcessor 'org.mapstruct:mapstruct-processor:1.5.2.Final'

But the plugin return:

warning   unused-dependency                  this dependency is a service provider unused at compileClasspath time and can be moved to the runtimeOnly configuration (no auto-fix available)
build.gradle:40
annotationProcessor 'org.mapstruct:mapstruct-processor:1.5.2.Final'

warning   unused-dependency                  this dependency is unused and can be removed
build.gradle:40
annotationProcessor 'org.mapstruct:mapstruct-processor:1.5.2.Final'

So, is necessary that you can check it and validate if the plugin is not supoorting the MapStruct configuration.