I'm trying to load a configuration file from project/distribution.conf into my .scala build definition setting through typesafe config library, although this file exists, this library fails to load it:
distributionFile <<= (baseDirectory in ThisBuild)(_ / "project" / "distribution.conf")
throw ConfigException. But other file version.properties was loaded perfectly, although i work with it manually.
Ok i've solved the problem.
ConfigFactory.load(path)was expecting a relative path, but i coundn't find any method onFilewhich could return it. But inConfigFactorythere is another methodparseFilewhich expects aFile, so setting is very easy: