-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathbuild.sbt
69 lines (54 loc) · 1.94 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import scalariform.formatter.preferences._
import scala.collection.JavaConverters._
import java.lang.management.ManagementFactory
enablePlugins(SbtPlugin)
scalariformPreferences := scalariformPreferences.value
.setPreference(AlignSingleLineCaseStatements, true)
.setPreference(DoubleIndentConstructorArguments, true)
.setPreference(DanglingCloseParenthesis, Preserve)
sbtPlugin := true
name := """sbt-slick-codegen"""
organization := "com.github.tototoshi"
version := "2.2.0"
crossSbtVersions := Seq("1.8.0")
val slickVersion = SettingKey[String]("slickVersion")
slickVersion := "3.5.0"
libraryDependencies ++= Seq(
"com.typesafe.slick" %% "slick" % slickVersion.value,
"com.typesafe.slick" %% "slick-codegen" % slickVersion.value
)
publishMavenStyle := true
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (version.value.trim.endsWith("SNAPSHOT")) Some("snapshots" at nexus + "content/repositories/snapshots")
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
Test / publishArtifact := false
pomExtra :=
<url>https://github.com/tototoshi/sbt-slick-codegen</url>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0.html</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>git@github.com:tototoshi/sbt-slick-codegen</url>
<connection>scm:git:git@github.com:tototoshi/sbt-slick-codegen.git</connection>
</scm>
<developers>
<developer>
<id>tototoshi</id>
<name>Toshiyuki Takahashi</name>
<url>https://tototoshi.github.io</url>
</developer>
</developers>
scriptedBufferLog := false
scriptedLaunchOpts ++= ManagementFactory.getRuntimeMXBean.getInputArguments.asScala.toList.filter(a =>
Seq("-Xmx", "-Xms", "-XX", "-Dsbt.log.noformat").exists(a.startsWith)
)
scriptedLaunchOpts ++= Seq(
"-Dplugin.version=" + version.value,
"-Dslick.version=" + slickVersion.value
)