Unrecognized dependency notation
Detects incorrect dependency notations.
The following types/formats are supported by Gradle:
Instances of
Dependency;StringorCharSequencevalues, for example'org.gradle:gradle-core:1.0';Maps, for example
[group: 'org.gradle', name: 'gradle-core', version: '1.0'];FileCollections, for example
files('some.jar', 'someOther.jar');Projects, for example
project(':some:project:path');ClassPathNotation, for examplegradleApi();Lists of dependency notations, for example
['org.gradle:gradle-core:1.0'];(Gradle 7.0+) Version catalog accessors, for example
libs.groovy.core.
Example:
Locating this inspection
- By ID
Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.
DependencyNotationArgument- Via Settings dialog
Path to the inspection settings via IntelliJ Platform IDE Settings dialog, when you need to adjust inspection settings directly from your IDE.
Inspection ID: DependencyNotationArgument
Suppressing Inspection
You can suppress this inspection by placing the following comment marker before the code fragment where you no longer want messages from this inspection to appear:
More detailed instructions as well as other ways and options that you have can be found in the product documentation:
Inspection Details | |
|---|---|
By default bundled with: |