Using doge to release correctly

This commit is contained in:
Eugene Yokota 2015-09-05 01:42:34 -04:00
parent cf6e656a67
commit 10fa9a4709
4 changed files with 22 additions and 5 deletions

3
CONTRIBUTING.md Normal file
View File

@ -0,0 +1,3 @@
```
$ sbt release
```

View File

@ -34,7 +34,6 @@ def commonSettings: Seq[Setting[_]] = Seq(
) )
lazy val utilRoot: Project = (project in file(".")). lazy val utilRoot: Project = (project in file(".")).
// configs(Sxr.sxrConf).
aggregate( aggregate(
utilInterface, utilControl, utilCollection, utilApplyMacro, utilComplete, utilInterface, utilControl, utilCollection, utilApplyMacro, utilComplete,
utilLogging, utilRelation, utilLogic, utilCache, utilTracking, utilTesting utilLogging, utilRelation, utilLogic, utilCache, utilTracking, utilTesting
@ -62,7 +61,10 @@ lazy val utilRoot: Project = (project in file(".")).
name := "Util Root", name := "Util Root",
publish := {}, publish := {},
publishLocal := {}, publishLocal := {},
publishArtifact := false publishArtifact in Compile := false,
publishArtifact in Test := false,
publishArtifact := false,
customCommands
) )
// defines Java structures used across Scala versions, such as the API structures and relationships extracted by // defines Java structures used across Scala versions, such as the API structures and relationships extracted by
@ -104,8 +106,7 @@ lazy val utilComplete = (project in internalPath / "util-complete").
settings( settings(
commonSettings, commonSettings,
name := "Util Completion", name := "Util Completion",
libraryDependencies ++= Seq(jline, sbtIO), libraryDependencies ++= Seq(jline, sbtIO)
crossScalaVersions := Seq(scala210, scala211)
) )
// logging // logging
@ -159,3 +160,13 @@ lazy val utilTesting = (project in internalPath / "util-testing").
name := "Util Testing", name := "Util Testing",
libraryDependencies ++= Seq(scalaCheck, scalatest) libraryDependencies ++= Seq(scalaCheck, scalatest)
) )
def customCommands: Seq[Setting[_]] = Seq(
commands += Command.command("release") { state =>
// "clean" ::
"so compile" ::
"so publishSigned" ::
"reload" ::
state
}
)

View File

@ -7,8 +7,10 @@ object Util {
lazy val generateKeywords = TaskKey[File]("generateKeywords") lazy val generateKeywords = TaskKey[File]("generateKeywords")
lazy val javaOnlySettings = Seq[Setting[_]]( lazy val javaOnlySettings = Seq[Setting[_]](
crossPaths := false,
compileOrder := CompileOrder.JavaThenScala, compileOrder := CompileOrder.JavaThenScala,
unmanagedSourceDirectories in Compile <<= Seq(javaSource in Compile).join unmanagedSourceDirectories in Compile <<= Seq(javaSource in Compile).join,
crossScalaVersions := Seq(Dependencies.scala211)
) )
def getScalaKeywords: Set[String] = def getScalaKeywords: Set[String] =

1
project/doge.sbt Normal file
View File

@ -0,0 +1 @@
addSbtPlugin("com.eed3si9n" % "sbt-doge" % "0.1.3")