-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathmix.exs
More file actions
35 lines (31 loc) · 865 Bytes
/
mix.exs
File metadata and controls
35 lines (31 loc) · 865 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
defmodule Mix.Tasks.Compile.Openbidder do
@shortdoc "Create open_bidder Jar"
def run(_) do
if not File.exists?("priv/open_bidder/target/open-bidder-0.0.1-standalone.jar") do
System.cmd "lein", ["uberjar"], cd: "priv/open_bidder", into: IO.stream(:stdio,:line)
end
end
end
defmodule SSPDemo.Mixfile do
use Mix.Project
def project do
[app: :ssp_demo,
version: "0.0.1",
elixir: "~> 1.1",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
compilers: [:openbidder] ++ Mix.compilers,
deps: deps]
end
def application do
[applications: [:logger,:plug,:cowboy,:iex,:poison, :exos,:riemann],
mod: {SSPDemo.App,[]}]
end
defp deps do
[{:cowboy, "~> 1.0"},
{:plug, "~> 1.0"},
{:exos, "~> 1.0.0"},
{:poison, "~> 1.5.0"},
{:riemann, " ~> 0.0.11"}]
end
end