|
| 1 | +import sbt.url |
| 2 | + |
| 3 | +organization := "com.sfxcode.nosql" |
| 4 | +organizationHomepage := Some(url("https://github.com/sfxcode")) |
| 5 | + |
| 6 | +publishMavenStyle := true |
| 7 | + |
| 8 | +homepage := Some(url("https://github.com/sfxcode/simple-mongo")) |
| 9 | + |
| 10 | +scmInfo := Some( |
| 11 | + ScmInfo( |
| 12 | + url("https://github.com/sfxcode/simple-mongo"), |
| 13 | + "scm:https://github.com/sfxcode/simple-mongo.git" |
| 14 | + ) |
| 15 | +) |
| 16 | + |
| 17 | +developers := List( |
| 18 | + Developer( |
| 19 | + id = "sfxcode", |
| 20 | + name = "Tom Lamers", |
| 21 | + |
| 22 | + url = url("https://github.com/sfxcode") |
| 23 | + ) |
| 24 | +) |
| 25 | + |
| 26 | +licenses += ("Apache-2.0", url("https://www.apache.org/licenses/LICENSE-2.0.html")) |
| 27 | + |
| 28 | +// add sonatype repository settings |
| 29 | +// snapshot versions publish to sonatype snapshot repository |
| 30 | +// other versions publish to sonatype staging repository |
| 31 | +publishTo := sonatypePublishToBundle.value |
| 32 | + |
| 33 | +packageOptions += { |
| 34 | + Package.ManifestAttributes( |
| 35 | + "Created-By" -> "Simple Build Tool", |
| 36 | + "Built-By" -> "sfxcode", |
| 37 | + "Build-Jdk" -> System.getProperty("java.version"), |
| 38 | + "Specification-Title" -> name.value, |
| 39 | + "Specification-Version" -> version.value, |
| 40 | + "Specification-Vendor" -> organization.value, |
| 41 | + "Implementation-Title" -> name.value, |
| 42 | + "Implementation-Version" -> version.value, |
| 43 | + "Implementation-Vendor-Id" -> organization.value, |
| 44 | + "Implementation-Vendor" -> organization.value |
| 45 | + ) |
| 46 | +} |
| 47 | + |
| 48 | +import sbtrelease.ReleasePlugin.autoImport.ReleaseTransformations._ |
| 49 | + |
| 50 | +releaseCrossBuild := true // true if you cross-build the project for multiple Scala versions |
| 51 | +releaseProcess := Seq[ReleaseStep]( |
| 52 | + checkSnapshotDependencies, |
| 53 | + inquireVersions, |
| 54 | + runClean, |
| 55 | + runTest, |
| 56 | + setReleaseVersion, |
| 57 | + commitReleaseVersion, |
| 58 | + tagRelease, |
| 59 | + // For non cross-build projects, use releaseStepCommand("publishSigned") |
| 60 | + releaseStepCommandAndRemaining("+publishSigned"), |
| 61 | + releaseStepCommand("sonatypeBundleRelease"), |
| 62 | + setNextVersion, |
| 63 | + commitNextVersion, |
| 64 | + pushChanges |
| 65 | +) |
0 commit comments