Browse Source

Fix dependency resolving under gradle 4

Some configurations can't be resolved explicitly now.
Check first.
pull/119/head
Chris Smith 6 years ago
parent
commit
6e4ad2c663
1 changed files with 6 additions and 2 deletions
  1. 6
    2
      gradle/resolve-dependencies.gradle

+ 6
- 2
gradle/resolve-dependencies.gradle View File

@@ -2,10 +2,14 @@ task resolveDependencies {
2 2
     doLast {
3 3
         allprojects.each { subProject ->
4 4
             subProject.buildscript.configurations.each { configuration ->
5
-                configuration.resolve()
5
+                if (configuration.isCanBeResolved()) {
6
+	                configuration.resolve()
7
+		}
6 8
             }
7 9
             subProject.configurations.each { configuration ->
8
-                configuration.resolve()
10
+		if (configuration.isCanBeResolved()) {
11
+	                configuration.resolve()
12
+		}
9 13
             }
10 14
         }
11 15
     }

Loading…
Cancel
Save