Update Java/Kotlin Gradle config file parser to support string interpolation in `build.gradle`
The following discussion from !164122 (merged) should be addressed:
-
@lma-git started a discussion:
Currently, Repository X-Ray doesn't support string interpolation in
build.gradle
either so this is not a priority to implement. We can address this in a follow-up:
Proposal
With a build.gradle
that looks like:
ext {
logbackVersion = '1.2.3'
junitVersion = '4.12'
}
dependencies {
implementation "logback:logback:$logbackVersion"
testImplementation "junit:junit:$junitVersion"
}
The ConfigFiles::JavaGradle
class should be able to parse the dependencies: logback (1.2.3)
and junit (4.12)
Ensure KotlinGradle
also supports string interpolation. Only plain string values should be interpolated; any nested interpolation is out of scope.