Added the LICENCE file and configured for first release

This commit is contained in:
Tim Linschoten
2017-04-06 11:23:31 +02:00
parent 220e392b5d
commit a196afc265
3 changed files with 58 additions and 5 deletions

9
LICENCE Normal file
View File

@@ -0,0 +1,9 @@
The MIT License (MIT)
Copyright (c) 2017 ING Bank NV
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@@ -28,11 +28,7 @@ lazy val noPublishSettings = Seq(
publishArtifact := false
)
val artifactoryRealm = "Artifactory Realm"
val publishSettings = Seq.empty
lazy val defaultModuleSettings = commonSettings ++ Revolver.settings ++ publishSettings
lazy val defaultModuleSettings = commonSettings ++ Revolver.settings ++ SonatypePublish.settings
lazy val baker = project.in(file("core"))
.settings(defaultModuleSettings: _*)

View File

@@ -0,0 +1,48 @@
import sbt._
import Keys._
import sbtrelease.ReleasePlugin.autoImport._
import sbtrelease.ReleaseStateTransformations._
object SonatypePublish {
protected def isSnapshot(s: String) = s.trim endsWith "SNAPSHOT"
protected val nexus = "https://oss.sonatype.org/"
protected val ossSnapshots = "Sonatype OSS Snapshots" at nexus + "content/repositories/snapshots/"
protected val ossStaging = "Sonatype OSS Staging" at nexus + "service/local/staging/deploy/maven2/"
val settings = Seq(
licenses := Seq("MIT" -> url("https://opensource.org/licenses/MIT")),
homepage := Some(url("https://github.com/ing-bank/baker")),
pomExtra := (
<scm>
<url>git@github.com:ing-bank/baker.git</url>
<connection>scm:git:git@github.com:ing-bank/baker</connection>
</scm>
<developers>
<developer>
<id>Apollo</id>
<name>Squad Apollo</name>
</developer>
</developers>
),
publishMavenStyle := true,
publishTo <<= version((v: String) => Some(if (isSnapshot(v)) ossSnapshots else ossStaging)),
publishArtifact in Test := false,
pomIncludeRepository := (_ => false),
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
ReleaseStep(action = Command.process("publishSigned", _)),
setNextVersion,
commitNextVersion,
ReleaseStep(action = Command.process("sonatypeReleaseAll", _)),
pushChanges
)
)
}