Re: Get profile from sbt

2016-09-21 Thread Bedrytski Aliaksandr
Hi Saurabh,

you may use BuildInfo[1] sbt plugin to access values defined in
build.sbt

Regards,
--
  Bedrytski Aliaksandr
  sp...@bedryt.ski



On Mon, Sep 19, 2016, at 18:28, Saurabh Malviya (samalviy) wrote:
> Hi,
>
> Is there any way equivalent to profiles in maven in sbt. I want spark
> build to pick up endpoints based on environment jar is built for
>
> In build.sbt we are ingesting variable dev,stage etc and pick up all
> dependencies. Similar way I need a way to pick up config for external
> dependencies like endpoints etc.
>
> Or another approach is there any way I can access variable defined in
> built.sbt in scala code.
>
> -Saurabh


Links:

  1. https://github.com/sbt/sbt-buildinfo


Get profile from sbt

2016-09-19 Thread Saurabh Malviya (samalviy)
Hi,

Is there any way equivalent to profiles in maven in sbt. I want spark build to 
pick up endpoints based on environment jar is built for

In build.sbt we are ingesting variable dev,stage etc and pick up all 
dependencies. Similar way I need a way to pick up config for external 
dependencies like endpoints etc.

Or another approach is there any way I can access variable defined in built.sbt 
in scala code.

-Saurabh