-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
4 changed files
with
70 additions
and
42 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,11 +1,58 @@ | ||
|
||
// do clean first! | ||
// sbt clean | ||
// sbt unidoc | ||
// sbt previewSite | ||
// sbt ghpagesPushSite | ||
|
||
// initiate publish from clean repo | ||
// sbt clean | ||
// sbt publish | ||
|
||
name := "snowball" | ||
|
||
version := "0.3.0" | ||
|
||
organization := "com.manyangled" | ||
|
||
version := "0.2.3-SNAPSHOT" | ||
//isSnapshot := true, | ||
|
||
//publishConfiguration := publishConfiguration.value.withOverwrite(true) | ||
|
||
//publishLocalConfiguration := publishLocalConfiguration.value.withOverwrite(true) | ||
|
||
pomIncludeRepository := { _ => false } | ||
|
||
publishMavenStyle := true | ||
|
||
publishTo := { | ||
val nexus = "https://oss.sonatype.org/" | ||
if (isSnapshot.value) | ||
Some("snapshots" at nexus + "content/repositories/snapshots") | ||
else | ||
Some("releases" at nexus + "service/local/staging/deploy/maven2") | ||
} | ||
|
||
licenses += ("Apache-2.0", url("http://opensource.org/licenses/Apache-2.0")) | ||
|
||
homepage := Some(url("https://github.com/erikerlandson/snowball/")) | ||
|
||
scmInfo := Some( | ||
ScmInfo( | ||
url("https://github.com/erikerlandson/snowball.git"), | ||
"scm:[email protected]:erikerlandson/snowball.git" | ||
) | ||
) | ||
|
||
developers := List( | ||
Developer( | ||
id = "erikerlandson", | ||
name = "Erik Erlandson", | ||
email = "[email protected]", | ||
url = url("https://erikerlandson.github.io/") | ||
) | ||
) | ||
|
||
crossPaths := false // drop off Scala suffix from artifact names. | ||
|
||
autoScalaLibrary := false // exclude scala-library from dependencies | ||
|
@@ -15,27 +62,21 @@ resolvers ++= Seq( | |
Resolver.sonatypeRepo("snapshots") | ||
) | ||
|
||
// commons math used to be '% Provided' but the 'packageDoc' target | ||
// now fails with that, so I'm just going to make it required | ||
libraryDependencies ++= Seq( | ||
"org.apache.commons" % "commons-math3" % "3.6.1" % Provided, | ||
"com.manyangled" % "gibbous" % "0.2.2" % Provided, | ||
"com.manyangled" %% "gnuplot4s" % "0.1.0" % Test, | ||
"org.apache.commons" % "commons-math3" % "3.6.1", | ||
"com.manyangled" % "gibbous" % "0.3.0", | ||
"com.manyangled" %% "gnuplot4s" % "0.2.0" % Test, | ||
"org.hamcrest" % "hamcrest-library" % "1.3" % Test, | ||
"com.novocode" % "junit-interface" % "0.11" % Test | ||
) | ||
|
||
licenses += ("Apache-2.0", url("http://opensource.org/licenses/Apache-2.0")) | ||
|
||
compileOrder := CompileOrder.JavaThenScala | ||
|
||
javacOptions ++= Seq() | ||
|
||
scalacOptions ++= Seq("-unchecked", "-deprecation", "-feature") | ||
|
||
scalacOptions in (Compile, doc) ++= Seq("-doc-root-content", baseDirectory.value+"/root-doc.txt") | ||
|
||
// xsbt clean xsbt unidoc; xsbt previewSite; xsbt ghpagesPushSite // do clean first! | ||
|
||
enablePlugins(JavaUnidocPlugin, GenJavadocPlugin, PublishJavadocPlugin, GhpagesPlugin) | ||
enablePlugins(JavaUnidocPlugin, PublishJavadocPlugin, GhpagesPlugin) | ||
|
||
siteSubdirName in JavaUnidoc := "java/api" | ||
|
||
|
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 +1 @@ | ||
sbt.version=1.1.2 | ||
sbt.version=1.3.12 |
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,16 +1,9 @@ | ||
resolvers += Resolver.url( | ||
"bintray-sbt-plugin-releases", | ||
url("http://dl.bintray.com/content/sbt/sbt-plugin-releases"))( | ||
Resolver.ivyStylePatterns) | ||
resolvers += "jgit-repo" at "https://download.eclipse.org/jgit/maven" | ||
|
||
resolvers += "sonatype-releases" at "https://oss.sonatype.org/content/repositories/releases/" | ||
addSbtPlugin("com.typesafe.sbt" % "sbt-ghpages" % "0.6.3") | ||
|
||
resolvers += "jgit-repo" at "http://download.eclipse.org/jgit/maven" | ||
addSbtPlugin("com.eed3si9n" % "sbt-unidoc" % "0.4.3") | ||
|
||
// addSbtPlugin("me.lessis" % "bintray-sbt" % "0.4.0") | ||
addSbtPlugin("io.crashbox" % "sbt-gpg" % "0.2.1") | ||
|
||
addSbtPlugin("org.foundweekends" % "sbt-bintray" % "0.5.4") | ||
|
||
addSbtPlugin("com.typesafe.sbt" % "sbt-ghpages" % "0.6.2") | ||
|
||
addSbtPlugin("com.eed3si9n" % "sbt-unidoc" % "0.4.1") | ||
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.2") |