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(".")).
// configs(Sxr.sxrConf).
aggregate(
utilInterface, utilControl, utilCollection, utilApplyMacro, utilComplete,
utilLogging, utilRelation, utilLogic, utilCache, utilTracking, utilTesting
@ -62,7 +61,10 @@ lazy val utilRoot: Project = (project in file(".")).
name := "Util Root",
publish := {},
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
@ -104,8 +106,7 @@ lazy val utilComplete = (project in internalPath / "util-complete").
settings(
commonSettings,
name := "Util Completion",
libraryDependencies ++= Seq(jline, sbtIO),
crossScalaVersions := Seq(scala210, scala211)
libraryDependencies ++= Seq(jline, sbtIO)
)
// logging
@ -159,3 +160,13 @@ lazy val utilTesting = (project in internalPath / "util-testing").
name := "Util Testing",
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 javaOnlySettings = Seq[Setting[_]](
crossPaths := false,
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] =

1
project/doge.sbt Normal file
View File

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