Skip to content

Commit 7d2d352

Browse files
committed
Add deps to 'mix new --umbrella'
1 parent 9d61e58 commit 7d2d352

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

lib/mix/lib/mix/tasks/new.ex

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,15 @@ defmodule Mix.Tasks.New do
137137
use Mix.Project
138138
139139
def project do
140-
[ apps_path: "apps" ]
140+
[ apps_path: "apps",
141+
deps: deps ]
142+
end
143+
144+
# Returns the list of dependencies in the format:
145+
# { :foobar, "0.1", git: "https://github.com/elixir-lang/foobar.git" }
146+
# Note that these dependencies can not be accessed by child applications
147+
defp deps do
148+
[]
141149
end
142150
end
143151
"""

0 commit comments

Comments
 (0)