You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by "Saurabh Malviya (samalviy)" <sa...@cisco.com> on 2016/09/19 16:28:42 UTC

Get profile from sbt

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

Re: Get profile from sbt

Posted by Bedrytski Aliaksandr <sp...@bedryt.ski>.
Hi Saurabh,

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

Regards,
--
  Bedrytski Aliaksandr
  spark@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