Skip to content

Commit

Permalink
Merge pull request #28 from kanat/master
Browse files Browse the repository at this point in the history
fix name conflict with other plugins which have the same name "gradle…
  • Loading branch information
kezong authored Jul 12, 2019
2 parents 41ace56 + 43412d8 commit b18ff9f
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,13 @@ class VariantProcessor {
mVariant = variant
// gradle version
mProject.parent.buildscript.getConfigurations().getByName("classpath").getDependencies().each { Dependency dep ->
if (dep.name == "gradle") {
if (dep.group == "com.android.tools.build" && dep.name == "gradle") {
mGradlePluginVersion = dep.version
}
}
if (mGradlePluginVersion == null) {
throw new IllegalStateException("com.android.tools.build:gradle is no set in the root build.gradle file")
}
}

void addArtifacts(Set<ResolvedArtifact> resolvedArtifacts) {
Expand Down

0 comments on commit b18ff9f

Please sign in to comment.