Skip to content

Commit ded6d08

Browse files
committed
Don't require the root project to set the buildscript
1 parent d76c975 commit ded6d08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/groovy/com/monits/gradle/sca/AndroidHelper.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ final class AndroidHelper {
147147
* @return The version of the used plugin, or {@see VersionNumber#UNKNOWN} if not known.
148148
*/
149149
private static VersionNumber getCurrentVersion(final Project project) {
150-
File androidDependency = project.rootProject.buildscript.configurations.getByName('classpath').resolve()
150+
File androidDependency = project.buildscript.configurations.getByName('classpath').resolve()
151151
.find { it =~ ANDROID_DEPENDENCY_PATTERN }
152152
Matcher matcher = androidDependency =~ ANDROID_DEPENDENCY_PATTERN
153153

0 commit comments

Comments
 (0)