Questions tagged [pureconfig]
50 questions
0
votes
1 answer
scala generic type hierarchy with different attribute name
I use https://pureconfig.github.io/ to load configuration values. For example for each table in a database, I store (db: String, table: String).However, I need to denote specific tables. Therefore, each one has a separate trait. I.e.:
trait…

Georg Heiler
- 16,916
- 36
- 162
- 292
0
votes
1 answer
pureconfig can't derive case class with many attributes
I can't derive a case class with many attributes. Strangely the output varies between SBT and gradle. A minimal reproducible example is found at https://github.com/geoHeil/pureconfig-issue, also the code is listed below:
sbt
sbt compile
[error]…

Georg Heiler
- 16,916
- 36
- 162
- 292
0
votes
1 answer
Pureconfig Typesafe Config with sealed abstract case class
I am trying to incorporate Pureconfig in my use case for typesafe configurations. Been successful in mapping HOCON .conf to case class types. However, if I have to constrain my types with no side-effects on the object definition side (i.e., supress…

ganaakruti
- 23
- 4
0
votes
1 answer
Pureconfig Typesafe Config with Hierarchical Root Keys
I have the below in application.conf and trying to figure out the best way to define my class class to load the configurations:
allKeys {
mysql {
dev {
host =
user =
}
prod {
host =
…

horatio1701d
- 8,809
- 14
- 48
- 77
0
votes
1 answer
Spark 2.1 with Pureconfig 0.8 workaround for Maven
The below solution taken from Spark not working with pureconfig seems to be the working solution for sbt but having a hard time figuring out a maven version for doing this. Trying to get pureconfig 0.8 working with spark 2.1 using spark-submit but…

horatio1701d
- 8,809
- 14
- 48
- 77