Inspectopedia Help

Unrecognized dependency notation

Detects incorrect dependency notations.

The following types/formats are supported by Gradle:

  • Instances of Dependency;

  • String or CharSequence values, 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 example gradleApi();

  • Lists of dependency notations, for example ['org.gradle:gradle-core:1.0'];

  • (Gradle 7.0+) Version catalog accessors, for example libs.groovy.core.

See Gradle documentation


dependencies { implementation(1) // reports '1' }

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3


Gradle-Java, 233.SNAPSHOT

Last modified: 13 July 2023