Przeglądaj źródła

Add silly hacks to make Gradle behave.

Add fake jar/test tasks with dependencies on the subprojects.
Make dependencies depend on subprojects.
pull/85/head
Chris Smith 9 lat temu
rodzic
commit
8eb64b7b86
1 zmienionych plików z 5 dodań i 0 usunięć
  1. 5
    0
      build.gradle

+ 5
- 0
build.gradle Wyświetl plik

@@ -149,6 +149,11 @@ task wrapper(type: Wrapper) {
149 149
     gradleVersion = '2.1'
150 150
 }
151 151
 
152
+subprojects.each { evaluationDependsOn it.path }
153
+task jar(dependsOn: subprojects*.jar)
154
+task test(dependsOn: subprojects*.test)
155
+tasks.dependencies.dependsOn subprojects*.tasks.dependencies
156
+
152 157
 def plugin(name) {
153 158
     if (allprojects.find { it.name == name }) {
154 159
         project(name)

Ładowanie…
Anuluj
Zapisz