-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
33 lines (21 loc) · 1010 Bytes
/
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
name := "sbt-latex"
organization := "emchristiansen"
version := "0.1.2"
description := "SBT plugin to build LaTeX projects."
licenses := Seq("Public domain / CC0" ->
url("http://creativecommons.org/publicdomain/zero/1.0/"))
homepage := Some(url("https://github.com/emchristiansen/sbt-latex"))
////////////////////////////////////////////////////////////////////////////////
sbtPlugin := true
scalacOptions := Seq("-deprecation", "-unchecked", "-optimize")
////////////////////////////////////////////////////////////////////////////////
publishTo <<= (version) { version: String =>
val scalasbt = "http://repo.scala-sbt.org/scalasbt/"
val (name, url) = if (version.contains("-SNAPSHOT"))
("sbt-plugin-snapshots", scalasbt+"sbt-plugin-snapshots")
else
("sbt-plugin-releases", scalasbt+"sbt-plugin-releases")
Some(Resolver.url(name, new URL(url))(Resolver.ivyStylePatterns))
}
publishMavenStyle := false
credentials += Credentials(Path.userHome / ".ivy2" / "sbtcredentials")