Explorar el Código

Propagate transitivity when switching modules.

Transitivity is *very* important when we're bundling dependencies.
Without this, the IRC plugin includes all the dependencies of the
parser (including "common"), which means it ends up with its own
version of common classes and can't be called from the rest of the
client. Not having an IRC parser is... unideal. This was very
confusing, which is why the commit message is randomly 8 lines
long. But it's over now; thank you for reading.
pull/27/head
Chris Smith hace 9 años
padre
commit
e251e481ed
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2
    2
      local-dependency-change.gradle

+ 2
- 2
local-dependency-change.gradle Ver fichero

@@ -10,7 +10,7 @@ gradle.projectsEvaluated {
10 10
             conf.dependencies.each { dep ->
11 11
                 if (dep.group =~ '^com.dmdirc' && dep.version == '+' && projectMap[dep.name] != null) {
12 12
                     remove += dep
13
-                    replace += [conf: conf.name, dep: dep]
13
+                    replace += [conf: conf.name, dep: dep, transitive: dep.transitive]
14 14
                 }
15 15
             }
16 16
 
@@ -18,7 +18,7 @@ gradle.projectsEvaluated {
18 18
         }
19 19
 
20 20
         replace.each { rep ->
21
-            p.dependencies.add(rep.conf, projectMap[rep.dep.name])
21
+            p.dependencies.add(rep.conf, projectMap[rep.dep.name], { transitive rep.transitive })
22 22
         }
23 23
     }
24 24
 }

Loading…
Cancelar
Guardar