forked from bmc/classutil
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sbt
More file actions
104 lines (80 loc) · 2.64 KB
/
build.sbt
File metadata and controls
104 lines (80 loc) · 2.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
// ---------------------------------------------------------------------------
// Basic settings
name := "classutil4s"
organization := "coreconsult"
bintrayOrganization := Some(organization.value)
version := "1.4.2"
licenses := Seq(
"BSD New" -> url("http://software.clapper.org/classutil/license.html")
)
homepage := Some(url("https://github.com/coreconsult/classutil4s"))
description := "A library for fast runtime class-querying, and more"
scalaVersion := "2.12.8"
crossScalaVersions := Seq("2.11.12", "2.12.8")
// ---------------------------------------------------------------------------
// Additional compiler options and plugins
scalacOptions ++= Seq("-deprecation", "-unchecked", "-feature")
autoCompilerPlugins := true
//tests need to be forked since the classpath of sbt test only contains a jar file of sbt
Test / fork := true
wartremoverErrors in (Compile, compile) ++= Seq(
Wart.ArrayEquals,
// Wart.Any,
// Wart.AnyVal,
// This library is loaded with casting, because of how it has to interface
// with ASM. AsInstanceOf cannot be enabled.
// Wart.AsInstanceOf
Wart.EitherProjectionPartial,
Wart.Enumeration,
Wart.ExplicitImplicitTypes,
Wart.FinalCaseClass,
Wart.FinalVal,
// Wart.IsInstanceOf,
Wart.JavaConversions,
Wart.LeakingSealed,
Wart.MutableDataStructures,
// Wart.NonUnitStatements,
// Wart.Nothing,
Wart.Null,
Wart.Option2Iterable,
Wart.OptionPartial,
Wart.PublicInference,
Wart.Return,
Wart.StringPlusAny,
Wart.Throw,
Wart.TraversableOps,
Wart.TryPartial,
Wart.Var,
Wart.While
)
// ---------------------------------------------------------------------------
// ScalaTest dependendency
libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.5" % "test"
// ---------------------------------------------------------------------------
// Other dependendencies
val asmVersion = "7.1"
libraryDependencies ++= Seq(
"org.ow2.asm" % "asm" % asmVersion,
"org.ow2.asm" % "asm-commons" % asmVersion,
"org.ow2.asm" % "asm-util" % asmVersion,
"org.clapper" %% "grizzled-scala" % "4.4.2"
)
// ---------------------------------------------------------------------------
// Publishing criteria
// Don't set publishTo. The Bintray plugin does that automatically.
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { _ => false }
pomExtra := (
<scm>
<url>git@github.com:coreconsult/classutil4s.git/</url>
<connection>scm:git:git@github.com:coreconsult/classutil4s.git</connection>
</scm>
<developers>
<developer>
<id>bmc</id>
<name>Brian Clapper</name>
<url>http://www.clapper.org/bmc</url>
</developer>
</developers>
)