File utilities that require Gradle 6.0+
| Type Params | Return Type | Name and description |
|---|---|---|
|
static org.ysb33r.grolifant.api.core.ClassLocation |
resolveClassLocation(Class aClass, FileCollection substitutionSearch, java.util.regex.Pattern substitutionMatch, java.util.regex.Pattern redoIfMatch = IS_A_JAR, java.util.regex.Pattern ignoreFromPaths = GENERATED_JAR_SUBPATH
)Returns the classpath location for a specific class. |
Returns the classpath location for a specific class.
Works around configuration cache-related intrumentation issue in Gradle 6.5+.
See https for details.
If the JAR name is the same as the instrumentJarName, then search the substitution collection for the
first hit that matches the provided pattern.
aClass - Class to find.substitutionSearch - Files to search. A typically example would be to look in
rootProject.buildscript.configurations.getByName( 'classpath' ).substitutionMatch - The pattern to look for. Typically the name of a jar with a version.redoIfMatch - A pattern that will cause a recheck if the path matches.
By default this is if the filename ends in .jar.ignoreFromPaths - A pattern for which candidate files will be ignore.
By default this will be files where the path is caches/jar-.null which means class has been found, but cannot be placed
on classpath