Skip to content

Commit

Permalink
v1.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Sciss committed Apr 10, 2018
1 parent 8aedb46 commit 1f200f2
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 50 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Span
*
* Copyright (c) 2013-2015 Hanns Holger Rutz. All rights reserved.
* Copyright (c) 2013-2018 Hanns Holger Rutz. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down
85 changes: 37 additions & 48 deletions build.sbt
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"
2 changes: 1 addition & 1 deletion src/main/scala/de/sciss/span/Span.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Span.scala
* (Span)
*
* Copyright (c) 2013-2015 Hanns Holger Rutz. All rights reserved.
* Copyright (c) 2013-2018 Hanns Holger Rutz. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down

0 comments on commit 1f200f2

Please sign in to comment.