forked from sbt/sbt-sbom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
31 lines (29 loc) · 1.23 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
ThisBuild / organization := Organization.organization
ThisBuild / organizationName := Organization.organizationName
ThisBuild / organizationHomepage := Organization.organizationHomepage
ThisBuild / version := "0.4.0-SNAPSHOT"
ThisBuild / scalaVersion := "2.12.8"
ThisBuild / homepage := Project.homepage
ThisBuild / developers := Project.developers
ThisBuild / licenses := Project.licenses
ThisBuild / scmInfo := Project.scmInfo
ThisBuild / description := Project.description
lazy val root = (project in file("."))
.enablePlugins(ScriptedPlugin)
.settings(
name := "sbt-bom",
sbtPlugin := true,
libraryDependencies ++= Dependencies.library,
scriptedLaunchOpts := {
scriptedLaunchOpts.value ++ Seq("-Xmx1024M", "-Dplugin.version=" + version.value, "-Dplugin.organization=" + organization.value)
},
scriptedBufferLog := false,
dependencyOverrides += "org.typelevel" %% "jawn-parser" % "0.14.1"
)
ThisBuild / pomIncludeRepository := { _ => false }
ThisBuild / publishTo := {
val nexus = "https://s01.oss.sonatype.org/"
if (isSnapshot.value) Some("snapshots" at nexus + "content/repositories/snapshots")
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
ThisBuild / publishMavenStyle := true