Permalink
Fetching contributors…
Cannot retrieve contributors at this time
executable file 70 lines (50 sloc) 2.07 KB
val liftVersion = settingKey[String]("Lift Web Framework full version number")
val liftEdition = settingKey[String]("Lift Edition (such as 2.6 or 3.0)")
name := "widgets"
organization := "net.liftmodules"
version := "1.6.0-SNAPSHOT"
liftVersion := "3.1.0"
liftEdition := (liftVersion apply { _.substring(0,3) }).value
moduleName := name.value + "_" + liftEdition.value
crossScalaVersions := Seq("2.12.3", "2.11.11")
scalaVersion := crossScalaVersions.value.head
scalacOptions ++= Seq("-unchecked", "-deprecation")
resolvers += "CB Central Mirror" at "http://repo.cloudbees.com/content/groups/public"
resolvers += "Java.net Maven2 Repository" at "http://download.java.net/maven/2/"
libraryDependencies += "net.liftweb" %% "lift-webkit" % liftVersion.value % "provided"
libraryDependencies ++=
"ch.qos.logback" % "logback-classic" % "1.2.3" % "provided" ::
"log4j" % "log4j" % "1.2.17" % "provided" ::
Nil
publishTo := (version.value.endsWith("SNAPSHOT") match {
case true => Some("snapshots" at "https://oss.sonatype.org/content/repositories/snapshots")
case false => Some("releases" at "https://oss.sonatype.org/service/local/staging/deploy/maven2")
})
credentials ++= (for {
username <- Option(System.getenv().get("SONATYPE_USERNAME"))
password <- Option(System.getenv().get("SONATYPE_PASSWORD"))
} yield Credentials("Sonatype Nexus Repository Manager", "oss.sonatype.org", username, password)).toSeq
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { _ => false }
pomExtra := (
<url>https://github.com/liftmodules/widgets</url>
<licenses>
<license>
<name>Apache 2.0 License</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>git@github.com:liftmodules/widgets.git</url>
<connection>scm:git:git@github.com:liftmodules/widgets.git</connection>
</scm>
<developers>
<developer>
<id>liftmodules</id>
<name>Lift Team</name>
<url>http://www.liftmodules.net</url>
</developer>
</developers>
)