diff options
author | Jakob Odersky <jakob@odersky.com> | 2018-04-29 20:27:12 -0700 |
---|---|---|
committer | Jakob Odersky <jakob@odersky.com> | 2018-04-29 20:30:46 -0700 |
commit | b9de5a974df556fd3d8ddeaf2cc5c372a80f3401 (patch) | |
tree | 8c4a62ba65e1b84f1f73bfec9dbbc3b18fbd2894 /publish.sbt | |
parent | fd12c691b0bc05fba1e2ff0dd1a579865ff5bd10 (diff) | |
download | commando-b9de5a974df556fd3d8ddeaf2cc5c372a80f3401.tar.gz commando-b9de5a974df556fd3d8ddeaf2cc5c372a80f3401.tar.bz2 commando-b9de5a974df556fd3d8ddeaf2cc5c372a80f3401.zip |
Set up travis and auto publishv0.1.0
Diffstat (limited to 'publish.sbt')
-rw-r--r-- | publish.sbt | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/publish.sbt b/publish.sbt new file mode 100644 index 0000000..9c0a42e --- /dev/null +++ b/publish.sbt @@ -0,0 +1,29 @@ +organization in ThisBuild := "io.crashbox" +licenses in ThisBuild := Seq( + ("BSD-3-Clause", url("https://opensource.org/licenses/BSD-3-Clause"))) +homepage in ThisBuild := Some(url("https://github.com/jodersky/commando")) +publishMavenStyle in ThisBuild := true +publishTo in ThisBuild := Some( + if (isSnapshot.value) + Opts.resolver.sonatypeSnapshots + else + Opts.resolver.sonatypeStaging +) +scmInfo in ThisBuild := Some( + ScmInfo( + url("https://github.com/jodersky/commando"), + "scm:git@github.com:jodersky/commando.git" + ) +) +developers in ThisBuild := List( + Developer( + id = "jodersky", + name = "Jakob Odersky", + email = "jakob@odersky.com", + url = url("https://crashbox.io") + ) +) +version in ThisBuild := { + import sys.process._ + ("git describe --always --dirty=-SNAPSHOT --match v[0-9].*" !!).tail.trim +} |