All Downloads are FREE. Search and download functionalities are using the official Maven repository.

er.lm-coursier-shaded_2.12.2.1.5.source-code.FromCoursier.scala Maven / Gradle / Ivy

The newest version!
package lmcoursier.definitions

// TODO Make private[lmcoursier]
// private[coursier]
object FromCoursier {

  def cachePolicy(r: coursier.cache.CachePolicy): CachePolicy =
    r match {
      case coursier.cache.CachePolicy.LocalOnly => CachePolicy.LocalOnly
      case coursier.cache.CachePolicy.LocalOnlyIfValid => CachePolicy.LocalOnlyIfValid
      case coursier.cache.CachePolicy.LocalUpdateChanging => CachePolicy.LocalUpdateChanging
      case coursier.cache.CachePolicy.LocalUpdate => CachePolicy.LocalUpdate
      case coursier.cache.CachePolicy.UpdateChanging => CachePolicy.UpdateChanging
      case coursier.cache.CachePolicy.Update => CachePolicy.Update
      case coursier.cache.CachePolicy.FetchMissing => CachePolicy.FetchMissing
      case coursier.cache.CachePolicy.ForceDownload => CachePolicy.ForceDownload
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy