positionOf

Finds the position of a specific Gradle project path and configuration in a list of strings.

Receiver

The list of strings to search in, typically lines of a build.gradle file.

Return

The Position of the dependency in the list if found, null otherwise. The position is 1-indexed.

Parameters

path

The Gradle project path to find.

configuration

The ConfigurationName related to the dependency to find.