-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.sbt
45 lines (38 loc) · 1.61 KB
/
build.sbt
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
// See README.md for license details.
ThisBuild / scalaVersion := "2.13.14"
ThisBuild / version := "5.3.0"
lazy val publishSettings = Seq (
// groupId, SCM, license information
versionScheme := Some("semver-spec"),
organization := "edu.berkeley.cs",
homepage := Some(url("https://github.com/freechipsproject/ip-contributions")),
scmInfo := Some(ScmInfo(url("https://github.com/freechipsproject/ip-contributions"), "[email protected]/freechipsproject/ip-contributions")),
developers := List(Developer("schoeberl", "schoeberl", "[email protected]", url("https://github.com/schoeberl"))),
licenses += ("Unlicense", url("https://unlicense.org/")),
publishMavenStyle := true,
// disable publish with scala version, otherwise artifact name will include scala version
// e.g cassper_2.11
crossPaths := false,
// add sonatype repository settings
// snapshot versions publish to sonatype snapshot repository
// other versions publish to sonatype staging repository
publishTo := Some(Opts.resolver.sonatypeStaging)
)
val chiselVersion = "5.3.0"
lazy val root = (project in file("."))
.settings(
name := "ip-contributions",
// resolvers += Resolver.sonatypeRepo("snapshots"),
libraryDependencies ++= Seq(
"org.chipsalliance" %% "chisel" % chiselVersion,
"edu.berkeley.cs" %% "chiseltest" % "5.0.2" % "test",
),
scalacOptions ++= Seq(
"-language:reflectiveCalls",
"-deprecation",
"-feature",
"-Xcheckinit",
),
addCompilerPlugin("org.chipsalliance" %% "chisel-plugin" % chiselVersion cross CrossVersion.full),
)
.settings(publishSettings: _*)