% -*- mode: erlang -*-

{erl_opts, [{native, o3},
	    warn_missing_spec,
            {parse_transform, lager_transform}
	   ]}.

{cover_enabled, true}.

{minimum_otp_vsn, "17.0"}.

{deps, [
%	{ej,    {git, "git://github.com/seth/ej.git",	  {branch, "master"}}},
        {jwalk, "0.6.0"},
        {jsone, "1.2.0"},
        {lager, "3.0.1"},
	{ranch, "1.1.0"}
       ]}.						     


% Documentation
{edoc_opts, [{skip_deps, true},
             {preprocess, true}, 
	     {packages, true},
	     {includes, "./include"}] }.


{dialyzer_opts, [{warnings, [no_return,
                             no_unused,
                             no_improper_lists,
                             no_fun_app,
                             no_match,
                             no_opaque,
                             no_fail_call,
                             error_handling,
                             race_conditions,
                             behaviours,
                             unmatched_returns]}]}.


{relx, [{release, {'jc', "1.0.2"},
         ['jc',
          kernel,
	  stdlib,
	  sasl, 
	  inets,
	  {observer,load},
	  {wx, load},
	  {runtime_tools, load}
	 ]}, 
	
        {sys_config, "./config/sys.config"},
        {vm_args, "./config/vm.args"},

        {dev_mode, true},
        {include_erts, false},

        {extended_start_script, true}]}.

{profiles, [
	    {prod, [
		    {relx, [{dev_mode, false},
                            {include_erts, true},
			    {include_src, false}]}
		   ]},
	    {test, [
		    {dialyzer_opts, [{warnings, []}]},
		    {ct_opts, [{cover, "test/jc.coverspec"}]}
		   ]}
	    
	    ]
}.

