     end
   end
 
+  defp get_project_apps(mixfile) when is_atom(mixfile) do
+    exports = mixfile.module_info(:exports)
+    cond do
+      {:application, 0} in exports ->
+        app_spec = mixfile.application
+        Keyword.get(app_spec, :applications, []) ++ Keyword.get(app_spec, :included_applications, [])
+      :else ->
+        []
+    end
+  end
+
 end

  Returns a list of explict applications found in mix.exs :applications/:included_applications
  """
  def get_explicit_applications() do
    mixfile = Mix.Project.get!
    exports = mixfile.module_info(:exports)
    cond do
      {:application, 0} in exports ->
        app_spec = mixfile.application
        Keyword.get(app_spec, :applications, []) ++ Keyword.get(app_spec, :included_applications, [])
      :else ->
        []
    end
  end

  @doc """

      true  ->
        project_dir = Keyword.get(opts, :dest)
        Mix.Project.in_project(app, project_dir, [], fn _ ->
          project_apps = get_project_apps(Mix.Project.get!)
          [{app, project_apps}]
        end)
    end
  end
