Skip to content

Commit

Permalink
update pureconfig to version 0.10.2
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Mortier <peter.mortier@gmail.com>
  • Loading branch information
kwark committed Mar 12, 2019
1 parent 7ef4daf commit cec56b9
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package geotrellis.spark.io.accumulo.conf

import geotrellis.spark.io.hadoop.conf.CamelCaseConfig
import geotrellis.spark.util.threadsFromString
import pureconfig.generic.auto._

case class AccumuloCollectionConfig(read: String = "default") {
def readThreads: Int = threadsFromString(read)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package geotrellis.spark.io.cassandra.conf

import geotrellis.spark.io.hadoop.conf.CamelCaseConfig
import geotrellis.spark.util._
import pureconfig.generic.auto._

case class CassandraCollectionConfig(read: String = "default") {
def readThreads: Int = threadsFromString(read)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

package geotrellis.spark.io.geomesa.conf

import pureconfig.generic.auto._

case class GeoMesaConfig(featureTypeCacheSize: Int = 16)

object GeoMesaConfig {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package geotrellis.spark.io.hbase.conf

import geotrellis.spark.io.hadoop.conf.CamelCaseConfig
import pureconfig.generic.auto._

case class HBaseConfig(catalog: String)

Expand Down
2 changes: 1 addition & 1 deletion project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import sbt._

object Dependencies {
val pureconfig = "com.github.pureconfig" %% "pureconfig" % "0.9.2"
val pureconfig = "com.github.pureconfig" %% "pureconfig" % "0.10.2"
val logging = "com.typesafe.scala-logging" %% "scala-logging" % "3.9.0"
val scalatest = "org.scalatest" %% "scalatest" % "3.0.5"
val scalacheck = "org.scalacheck" %% "scalacheck" % "1.14.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package geotrellis.spark.io.s3.conf

import geotrellis.spark.io.hadoop.conf.CamelCaseConfig
import geotrellis.spark.util.threadsFromString
import pureconfig.generic.auto._

case class S3CollectionConfig(read: String = "default") {
def readThreads: Int = threadsFromString(read)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package geotrellis.spark.io.file.conf

import geotrellis.spark.io.hadoop.conf.CamelCaseConfig
import geotrellis.spark.util.threadsFromString
import pureconfig.generic.auto._

case class FileCollectionConfig(read: String = "default") {
def readThreads: Int = threadsFromString(read)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

package geotrellis.spark.io.hadoop.conf

import pureconfig.generic.auto._

case class AttributeCachingConfig(
expirationMinutes: Int = 60,
maxSize: Int = 1000,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@

package geotrellis.spark.io.hadoop.conf

import pureconfig.{CamelCase, ConfigFieldMapping, ProductHint}
import pureconfig.{CamelCase, ConfigFieldMapping}
import pureconfig.generic.ProductHint

trait CamelCaseConfig {
implicit def hint[T]: ProductHint[T] = ProductHint[T](ConfigFieldMapping(CamelCase, CamelCase))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package geotrellis.spark.io.hadoop.conf

import geotrellis.spark.util.threadsFromString
import pureconfig.generic.auto._

case class HadoopCollectionConfig(read: String = "default") {
def readThreads: Int = threadsFromString(read)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package geotrellis.vector.conf
import com.typesafe.scalalogging.LazyLogging
import org.locationtech.jts.geom.PrecisionModel
import org.locationtech.jts.precision.GeometryPrecisionReducer
import pureconfig.generic.auto._

case class Simplification(scale: Double = 1e12) {
// 12 digits is maximum to avoid [[TopologyException]], see https://web.archive.org/web/20160226031453/http://tsusiatsoftware.net/jts/jts-faq/jts-faq.html#D9
Expand Down

0 comments on commit cec56b9

Please sign in to comment.