Scanner doesn't allow repostiory variable reference
In most of my project, I use a static class to define constants so that I can manage my dependencies version in a single place, all of those being stored in the buildSrc
folder. This allows me to define in my project's build.gradle
the following :
buildscript {
repositories {
jcenter()
mavenCentral()
maven { url Dependencies.Repositories.Jitpack }
}
}
The problem is that the scanner is doing some basic regex to extract the url from the file, and does not follow references, meaning that even though I'm using a valid repository, it's flagged as an error.
For now I'll rewrite my dependency management to use hardcoded values every where needed, but it would be better if I could define constants once and reference them.