Skip to content

Commit

Permalink
enabled cross-sbt compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
pnerg committed Nov 25, 2018
1 parent 1b8b487 commit 97eb12a
Showing 1 changed file with 10 additions and 34 deletions.
44 changes: 10 additions & 34 deletions build.sbt
@@ -1,10 +1,20 @@
lazy val `sbt-release` = project in file(".")
import org.dmonix.sbt.MavenCentralPlugin._
import sbt.Developer

enablePlugins(MavenCentralPlugin)
sbtPlugin := true

name := "sbt-publish-settings-plugin"
organization := "org.dmonix.sbt"

//info required for Maven Central
startYear := Some(2017)
homepage := Some(new URL("https://github.com/pnerg/sbt-publish-settings-plugin"))
scmInfo := Some(github("pnerg/sbt-publish-settings-plugin"))
licenses := Seq(apache)
developers := List(githubDeveloper("pnerg", "Peter Nerg"))

scalaVersion := "2.10.6"
crossScalaVersions := Seq("2.10.6", "2.12.3")
crossSbtVersions := Seq("0.13.17", "1.1.6")
Expand All @@ -23,37 +33,3 @@ scalacOptions := Seq("-feature",
scalacOptions in (Compile, doc) ++= Seq("-doc-title", "SBT Publish Settings Plugin")
scalacOptions in (Compile, doc) ++= Seq("-doc-root-content", baseDirectory.value+"/src/main/scaladoc/overview.txt")
scalacOptions in (Compile, doc) ++= Seq("-doc-footer", "Copyright (c) 2018 Peter Nerg, Apache License v2.0.")

//----------------------------
//info for where and how to publish artifacts
//----------------------------
import org.dmonix.sbt.MavenCentralSettings._
import org.dmonix.sbt.CredentialsSettings._
publishTo <<= version {publishURL(_)}
credentials ++= publishCredentials

//----------------------------
//needed to create the proper pom.xml for publishing to mvn central
//----------------------------
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { _ => false }
pomExtra := (
<url>https://github.com/pnerg/sbt-publish-settings-plugin</url>
<licenses>
<license>
<name>Apache</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>
<scm>
<url>git@github.com:pnerg/sbt-publish-settings-plugin.git</url>
<connection>scm:git:git@github.com/pnerg/sbt-publish-settings-plugin.git</connection>
</scm>
<developers>
<developer>
<id>pnerg</id>
<name>Peter Nerg</name>
<url>http://github.com/pnerg</url>
</developer>
</developers>)

0 comments on commit 97eb12a

Please sign in to comment.