gradle-lint-plugin icon indicating copy to clipboard operation
gradle-lint-plugin copied to clipboard

A specific dependency notation causes incorrect behavior

Open sergeykad opened this issue 3 years ago • 0 comments

Expected behavior

The plugin works correctly regardless of the used dependency notation or at least returns a clear error message.

Actual behavior

Using the following format causes incorrect behavior. For example auto-fix will remove all the listed dependencies if at least one of them is redundand.

implementation 'org.apache.logging.log4j:log4j-core:2.17.2',
         'commons-codec:commons-codec:1.11'

If the dependency specified as below everithing works correctly.

implementation 'org.apache.logging.log4j:log4j-core:2.17.2'
implementation 'commons-codec:commons-codec:1.11'

Environment

Using "nebula.lint" version "17.6.1" with Gradle 7.4, but it is reproducible on older versions as well.

sergeykad avatar Mar 25 '22 19:03 sergeykad