forked from Sciss/Span
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
39 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,52 @@ | ||
lazy val baseName = "Span" | ||
lazy val baseNameL = baseName.toLowerCase | ||
|
||
lazy val projectVersion = "1.4.0-SNAPSHOT" | ||
lazy val projectVersion = "1.4.0" | ||
lazy val mimaVersion = "1.4.0" | ||
|
||
name := baseName | ||
version := projectVersion | ||
organization := "de.sciss" | ||
scalaVersion := "2.12.5" | ||
crossScalaVersions := Seq("2.12.5", "2.11.12") | ||
description := "A simple data type for describing sample frame intervals" | ||
homepage := Some(url(s"https://github.com/Sciss/${name.value}")) | ||
licenses := Seq("LGPL v2.1+" -> url( "http://www.gnu.org/licenses/lgpl-2.1.txt")) | ||
|
||
mimaPreviousArtifacts := Set("de.sciss" %% baseNameL % mimaVersion) | ||
|
||
initialCommands in console := """import de.sciss.span._""" | ||
|
||
scalacOptions := Seq("-deprecation", "-unchecked", "-feature", "-Xfuture", "-encoding", "utf8", "-Xlint") | ||
|
||
libraryDependencies ++= Seq( | ||
"de.sciss" %% "serial" % "1.1.0-SNAPSHOT", | ||
"org.scalatest" %% "scalatest" % "3.0.5" % "test" | ||
) | ||
|
||
// ---- publishing ---- | ||
|
||
publishMavenStyle := true | ||
|
||
publishTo := | ||
Some(if (isSnapshot.value) | ||
"Sonatype Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots" | ||
else | ||
"Sonatype Releases" at "https://oss.sonatype.org/service/local/staging/deploy/maven2" | ||
lazy val root = project.withId(baseNameL).in(file(".")) | ||
.enablePlugins(GhpagesPlugin, SiteScaladocPlugin) | ||
.settings( | ||
name := baseName, | ||
version := projectVersion, | ||
organization := "de.sciss", | ||
scalaVersion := "2.12.5", | ||
crossScalaVersions := Seq("2.12.5", "2.11.12"), | ||
description := "A simple data type for describing sample frame intervals", | ||
homepage := Some(url(s"https://github.com/Sciss/${name.value}")), | ||
licenses := Seq("LGPL v2.1+" -> url( "http://www.gnu.org/licenses/lgpl-2.1.txt")), | ||
mimaPreviousArtifacts := Set("de.sciss" %% baseNameL % mimaVersion), | ||
initialCommands in console := """import de.sciss.span._""", | ||
scalacOptions := Seq("-deprecation", "-unchecked", "-feature", "-Xfuture", "-encoding", "utf8", "-Xlint"), | ||
libraryDependencies ++= Seq( | ||
"de.sciss" %% "serial" % "1.1.0", | ||
"org.scalatest" %% "scalatest" % "3.0.5" % "test" | ||
), | ||
// ---- ghpages ---- | ||
git.remoteRepo := s"[email protected]:Sciss/${name.value}.git" | ||
) | ||
.settings(publishSettings) | ||
|
||
publishArtifact in Test := false | ||
|
||
pomIncludeRepository := { _ => false } | ||
|
||
/* this seems to be generated now automatically somewhere: | ||
<scm> | ||
<url>[email protected]:Sciss/{n}.git</url> | ||
<connection>scm:git:[email protected]:Sciss/{n}.git</connection> | ||
</scm> | ||
*/ | ||
|
||
pomExtra := { val n = name.value | ||
// ---- publishing ---- | ||
lazy val publishSettings = Seq( | ||
publishMavenStyle := true, | ||
publishTo := { | ||
Some(if (isSnapshot.value) | ||
"Sonatype Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots" | ||
else | ||
"Sonatype Releases" at "https://oss.sonatype.org/service/local/staging/deploy/maven2" | ||
) | ||
}, | ||
publishArtifact in Test := false, | ||
pomIncludeRepository := { _ => false }, | ||
pomExtra := { val n = name.value | ||
<developers> | ||
<developer> | ||
<id>sciss</id> | ||
<name>Hanns Holger Rutz</name> | ||
<url>http://www.sciss.de</url> | ||
</developer> | ||
</developers> | ||
} | ||
|
||
// ---- ghpages ---- | ||
|
||
enablePlugins(GhpagesPlugin, SiteScaladocPlugin) | ||
} | ||
) | ||
|
||
git.remoteRepo := s"[email protected]:Sciss/${name.value}.git" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters