Pre-Commit
This commit is contained in:
parent
ead8979821
commit
6f3e21e75c
2 changed files with 21 additions and 20 deletions
37
build.sbt
37
build.sbt
|
|
@ -13,7 +13,7 @@ val Description: String = "SBT 2.0.0+ plugin for Garrity Software projects."
|
||||||
|
|
||||||
val CurrentVersion: String = "0.8.0"
|
val CurrentVersion: String = "0.8.0"
|
||||||
|
|
||||||
def isRelease(): Boolean =
|
def isRelease(): Boolean =
|
||||||
!CurrentVersion.contains("SNAPSHOT")
|
!CurrentVersion.contains("SNAPSHOT")
|
||||||
|
|
||||||
lazy val publishSettings = Seq(
|
lazy val publishSettings = Seq(
|
||||||
|
|
@ -28,7 +28,9 @@ lazy val publishSettings = Seq(
|
||||||
),
|
),
|
||||||
description := Description,
|
description := Description,
|
||||||
licenses := List(
|
licenses := List(
|
||||||
"MIT" -> uri(s"https://git.garrity.co/garrity-software/$ProjectName/LICENSE")
|
"MIT" -> uri(
|
||||||
|
s"https://git.garrity.co/garrity-software/$ProjectName/LICENSE"
|
||||||
|
)
|
||||||
),
|
),
|
||||||
homepage := Some(
|
homepage := Some(
|
||||||
uri(s"https://git.garrity.co/garrity-software/$ProjectName")
|
uri(s"https://git.garrity.co/garrity-software/$ProjectName")
|
||||||
|
|
@ -48,22 +50,21 @@ lazy val root = Project(ProjectName, file("."))
|
||||||
.settings(
|
.settings(
|
||||||
name := ProjectName,
|
name := ProjectName,
|
||||||
version := CurrentVersion,
|
version := CurrentVersion,
|
||||||
pluginCrossBuild / sbtVersion := {
|
pluginCrossBuild / sbtVersion :=
|
||||||
"2.0.0"
|
"2.0.0",
|
||||||
},
|
|
||||||
scalacOptions := Seq(
|
scalacOptions := Seq(
|
||||||
"-encoding",
|
"-encoding",
|
||||||
"utf8",
|
"utf8",
|
||||||
"-deprecation",
|
"-deprecation",
|
||||||
"-feature",
|
"-feature",
|
||||||
"-explain",
|
"-explain",
|
||||||
"-unchecked",
|
"-unchecked",
|
||||||
"-explain-types",
|
"-explain-types",
|
||||||
"-language:strictEquality",
|
"-language:strictEquality",
|
||||||
"-Wunused:implicits",
|
"-Wunused:implicits",
|
||||||
"-Wunused:explicits",
|
"-Wunused:explicits",
|
||||||
"-Wunused:imports",
|
"-Wunused:imports",
|
||||||
"-Wunused:locals",
|
"-Wunused:locals",
|
||||||
"-Wunused:privates"
|
"-Wunused:privates"
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -13,9 +13,9 @@ object Gs:
|
||||||
"-feature", // Emit warning and location for usages of features that should be imported explicitly.
|
"-feature", // Emit warning and location for usages of features that should be imported explicitly.
|
||||||
"-explain", // Explain errors in more detail.
|
"-explain", // Explain errors in more detail.
|
||||||
"-unchecked", // Enable additional warnings where generated code depends on assumptions.
|
"-unchecked", // Enable additional warnings where generated code depends on assumptions.
|
||||||
"-explain-types", // Explain type errors in more detail.
|
"-explain-types", // Explain type errors in more detail.
|
||||||
"-language:strictEquality", // Enable multiversal equality (require CanEqual)
|
"-language:strictEquality", // Enable multiversal equality (require CanEqual)
|
||||||
"-Werror", // Fail the compilation if there are any warnings.
|
"-Werror", // Fail the compilation if there are any warnings.
|
||||||
"-Wunused:implicits", // Warn if an implicit parameter is unused.
|
"-Wunused:implicits", // Warn if an implicit parameter is unused.
|
||||||
"-Wunused:explicits", // Warn if an explicit parameter is unused.
|
"-Wunused:explicits", // Warn if an explicit parameter is unused.
|
||||||
"-Wunused:imports", // Warn if an import selector is not referenced.
|
"-Wunused:imports", // Warn if an import selector is not referenced.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue