Merge pull request #262 from eed3si9n/wip/houserules

-Xfatal-warnings
This commit is contained in:
eugene yokota 2018-09-22 00:07:40 -04:00 committed by GitHub
commit 53c41c6599
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 41 additions and 37 deletions

View File

@ -99,6 +99,10 @@ lazy val lmCore = (project in file("core"))
)
)
.taskValue,
Compile / scalacOptions ++= (scalaVersion.value match {
case v if v.startsWith("2.12.") => List("-Ywarn-unused:-locals,-explicits,-privates")
case _ => List()
}),
managedSourceDirectories in Compile +=
baseDirectory.value / "src" / "main" / "contraband-scala",
sourceManaged in (Compile, generateContrabands) := baseDirectory.value / "src" / "main" / "contraband-scala",

View File

@ -4,15 +4,15 @@
// DO NOT EDIT MANUALLY
package sbt.librarymanagement
/** Work around the inadequacy of Ivy's ArtifactTypeFilter (that it cannot reverse a filter) */
/**
* Work around the inadequacy of Ivy's ArtifactTypeFilter (that it cannot reverse a filter)
* @param types Represents the artifact types that we should try to resolve for (as in the allowed values of
`artifact[type]` from a dependency `<publications>` section). One can use this to filter
source / doc artifacts.
* @param inverted Whether to invert the types filter (i.e. allow only types NOT in the set)
*/
final class ArtifactTypeFilter private (
/**
* Represents the artifact types that we should try to resolve for (as in the allowed values of
* `artifact[type]` from a dependency `<publications>` section). One can use this to filter
* source / doc artifacts.
*/
val types: Set[String],
/** Whether to invert the types filter (i.e. allow only types NOT in the set) */
val inverted: Boolean) extends sbt.librarymanagement.ArtifactTypeFilterExtra with Serializable {

View File

@ -4,9 +4,11 @@
// DO NOT EDIT MANUALLY
package sbt.librarymanagement
/** A reference to Configuration. */
/**
* A reference to Configuration.
* @param name The name of the configuration that eventually get used by Maven.
*/
final class ConfigRef private (
/** The name of the configuration that eventually get used by Maven. */
val name: String) extends Serializable {

View File

@ -4,13 +4,15 @@
// DO NOT EDIT MANUALLY
package sbt.librarymanagement
/** Provides information about resolution of a single configuration. */
/**
* Provides information about resolution of a single configuration.
* @param configuration the configuration this report is for.
* @param modules a sequence containing one report for each module resolved for this configuration.
* @param details a sequence containing one report for each org/name, which may or may not be part of the final resolution.
*/
final class ConfigurationReport private (
/** the configuration this report is for. */
val configuration: sbt.librarymanagement.ConfigRef,
/** a sequence containing one report for each module resolved for this configuration. */
val modules: Vector[sbt.librarymanagement.ModuleReport],
/** a sequence containing one report for each org/name, which may or may not be part of the final resolution. */
val details: Vector[sbt.librarymanagement.OrganizationArtifactReport]) extends sbt.librarymanagement.ConfigurationReportExtra with Serializable {

View File

@ -4,22 +4,20 @@
// DO NOT EDIT MANUALLY
package sbt.librarymanagement
/**
* @param retrieveManaged If set to some RetrieveConfiguration, this enables retrieving dependencies to the specified directory.
Otherwise, dependencies are used directly from the cache.
* @param missingOk If set to true, it ignores when artifacts are missing.
This setting could be uses when retrieving source/javadocs jars opportunistically.
* @param logging Logging setting used specifially for library management.
* @param logicalClock The clock that may be used for caching.
* @param metadataDirectory The base directory that may be used to store metadata.
*/
final class UpdateConfiguration private (
/**
* If set to some RetrieveConfiguration, this enables retrieving dependencies to the specified directory.
* Otherwise, dependencies are used directly from the cache.
*/
val retrieveManaged: Option[sbt.librarymanagement.RetrieveConfiguration],
/**
* If set to true, it ignores when artifacts are missing.
* This setting could be uses when retrieving source/javadocs jars opportunistically.
*/
val missingOk: Boolean,
/** Logging setting used specifially for library management. */
val logging: sbt.librarymanagement.UpdateLogging,
/** The clock that may be used for caching. */
val logicalClock: sbt.librarymanagement.LogicalClock,
/** The base directory that may be used to store metadata. */
val metadataDirectory: Option[java.io.File],
val artifactFilter: Option[sbt.librarymanagement.ArtifactTypeFilter],
val offline: Boolean,

View File

@ -8,13 +8,13 @@ package sbt.librarymanagement
* Provides information about dependency resolution.
* It does not include information about evicted modules, only about the modules ultimately selected by the conflict manager.
* This means that for a given configuration, there should only be one revision for a given organization and module name.
* @param cachedDescriptor the location of the resolved module descriptor in the cache
* @param configurations a sequence containing one report for each configuration resolved.
* @param stats stats information about the update that produced this report
*/
final class UpdateReport private (
/** the location of the resolved module descriptor in the cache */
val cachedDescriptor: java.io.File,
/** a sequence containing one report for each configuration resolved. */
val configurations: Vector[sbt.librarymanagement.ConfigurationReport],
/** stats information about the update that produced this report */
val stats: sbt.librarymanagement.UpdateStats,
val stamps: Map[java.io.File, Long]) extends sbt.librarymanagement.UpdateReportExtra with Serializable {

View File

@ -31,9 +31,9 @@ import okhttp3.Challenge;
import okhttp3.Credentials;
/**
* Adapts {@link java.net.Authenticator} to {@link Authenticator}. Configure OkHttp to use {@link
* java.net.Authenticator} with {@link OkHttpClient.Builder#authenticator} or {@link
* OkHttpClient.Builder#proxyAuthenticator(Authenticator)}.
* Adapts java.net.Authenticator to Authenticator. Configure OkHttp to use
* java.net.Authenticator with OkHttpClient.Builder#authenticator or
* OkHttpClient.Builder#proxyAuthenticator(Authenticator).
*/
public final class JavaNetAuthenticator implements Authenticator {
@Override public Request authenticate(Route route, Response response) throws IOException {

View File

@ -26,8 +26,6 @@ import syntax._
import InternalDefaults._
import UpdateClassifiersUtil._
import scala.util.Try
object IvyActions {
/** Installs the dependencies of the given 'module' from the resolver named 'from' to the resolver named 'to'.*/

View File

@ -21,7 +21,7 @@ class IvyDependencyResolution private[sbt] (val ivySbt: IvySbt)
private[sbt] def toModule(module: ModuleDescriptor): Module =
module match {
case m: Module => m
case m: Module @unchecked => m
}
}

View File

@ -25,7 +25,7 @@ class IvyPublisher private[sbt] (val ivySbt: IvySbt) extends PublisherInterface
private[sbt] def toModule(module: ModuleDescriptor): Module =
module match {
case m: Module => m
case m: Module @unchecked => m
}
}

View File

@ -1 +1 @@
sbt.version=1.1.6
sbt.version=1.2.3

View File

@ -1,5 +1,5 @@
addSbtPlugin("org.scala-sbt" % "sbt-houserules" % "0.3.7")
addSbtPlugin("org.scala-sbt" % "sbt-contraband" % "0.4.0")
addSbtPlugin("org.scala-sbt" % "sbt-houserules" % "0.3.8")
addSbtPlugin("org.scala-sbt" % "sbt-contraband" % "0.4.1")
addSbtPlugin("com.lightbend" % "sbt-whitesource" % "0.1.9")
scalacOptions += "-language:postfixOps"