9

A partire da SBT 0.13.6, gli sfratti sono ora avvertimenti.Soppressione avvisi di sfratto SBT

[warn] Scala version was updated by one of library dependencies: 
[warn] * org.scala-lang:scala-library:(2.10.4, 2.10.1, 2.10.3, 2.10.0) -> 2.10.2 
[warn] * org.scala-lang:scala-compiler:2.10.0 -> 2.10.4 
[warn] To force scalaVersion, add the following: 
[warn] ivyScala := ivyScala.value map { _.copy(overrideScalaVersion = true) } 
[warn] There may be incompatibilities among your library dependencies. 
[warn] Here are some of the libraries that were evicted: 
[warn] * org.apache.httpcomponents:httpclient:(4.1.3, [4.1, 4.2)) -> 4.0.1 
[warn] * org.specs2:specs2_2.10:(1.12.3, 2.3.13) -> 2.4.2 
[warn] Run 'evicted' to see detailed eviction warnings 

Come posso sopprimere questi avvisi?

risposta

6

Questo dovrebbe farlo:

evictionWarningOptions in update := EvictionWarningOptions.default.withWarnTransitiveEvictions(false).withWarnDirectEvictions(false).withWarnScalaVersionEviction(false) 
+1

non sono sicuro dove mettere questo? Potete fornire maggiori informazioni? – jaynp

+1

@jpp Eg, lazy val myprj = Progetto (id = appName, base = file ("."), Settings = Seq (scalaVersion: = "2.11.5", ..., evictionWarningOptions in aggiornamento: = EvictionWarningOptions.default. withWarnTransitiveEvictions (false) .withWarnDirectEvictions (false) .withWarnScalaVersionEviction (false))) –

+0

Ottengo 'error: not found: value evictionWarningOptions'. Questo è in un progetto Play, usando sbt 0.13.7. – ejain