forked from pfn/kotlin-plugin
-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.sbt
46 lines (33 loc) · 1.29 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
import sbt.io.Path.userHome
name := "kotlin-plugin"
scalaVersion := "2.12.15"
organization := "com.github.tmtsoftware"
version := "3.0.3"
lazy val LocalMavenResolverForSbtPlugins = {
// remove scala and sbt versions from the path, as it does not work with jitpack
val pattern = "[organisation]/[module]/[revision]/[module]-[revision](-[classifier]).[ext]"
val name = "local-maven-for-sbt-plugins"
val location = userHome / ".m2" / "repository"
Resolver.file(name, location)(Patterns().withArtifactPatterns(Vector(pattern)))
}
homepage := scmInfo.value map (_.browseUrl)
scmInfo := Some(
ScmInfo(url("https://github.com/tmtsoftware/kotlin-plugin"), "scm:git:[email protected]:tmtsoftware/kotlin-plugin.git")
)
scalacOptions ++= Seq("-deprecation", "-Xlint", "-feature")
libraryDependencies ++= Seq(
"org.scalaz" %% "scalaz-core" % "7.3.6"
)
sbtPlugin := true
// build info plugin
enablePlugins(BuildInfoPlugin, SbtPlugin)
buildInfoPackage := "kotlin"
publishMavenStyle := true
resolvers += LocalMavenResolverForSbtPlugins
publishM2Configuration := publishM2Configuration.value.withResolverName(LocalMavenResolverForSbtPlugins.name)
licenses += ("MIT", url("http://opensource.org/licenses/MIT"))
// scripted
scriptedLaunchOpts ++= Seq(
"-Xmx1024m",
"-Dplugin.version=" + version.value
)