Skip to content

Commit

Permalink
Gradle: Update the namespace check for plugins
Browse files Browse the repository at this point in the history
It seems that the Kotlin DSL behavior has changed at some point and core
plugins now report "org.gradle" instead of null as their namespace.

Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
  • Loading branch information
sschuberth committed May 29, 2019
1 parent a567f09 commit c2ebd7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ pluginManagement {
resolutionStrategy {
eachPlugin {
// Work around https://github.com/gradle/gradle/issues/1697.
if (requested.id.namespace != null && requested.version == null) {
if (requested.id.namespace != "org.gradle" && requested.version == null) {
val versionPropertyName = if (requested.id.id == "org.jetbrains.kotlin.jvm") {
"kotlinPluginVersion"
} else {
Expand Down

0 comments on commit c2ebd7e

Please sign in to comment.