Skip to content

Commit 36ffcc2

Browse files
committed
SBT 1.2.0
1 parent fda11b7 commit 36ffcc2

File tree

3 files changed

+35
-4
lines changed

3 files changed

+35
-4
lines changed

build.sbt

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import sbt.url
2+
13
import scala.sys.process._
24

35
name := "simple-mongo"
@@ -33,7 +35,7 @@ libraryDependencies += "joda-time" % "joda-time" % "2.10" % Test
3335

3436
libraryDependencies += "org.json4s" %% "json4s-native" % "3.6.0" % Test
3537

36-
libraryDependencies += "com.github.pathikrit" %% "better-files" % "3.5.0" % Test
38+
libraryDependencies += "com.github.pathikrit" %% "better-files" % "3.6.0" % Test
3739

3840

3941
libraryDependencies += "org.mongodb.scala" %% "mongo-scala-driver" % "2.4.0"
@@ -46,7 +48,6 @@ buildInfoOptions += BuildInfoOption.BuildTime
4648

4749
licenses += ("Apache-2.0", url("https://www.apache.org/licenses/LICENSE-2.0.html"))
4850

49-
bintrayReleaseOnPublish in ThisBuild := true
5051

5152
version in Paradox := {
5253
if (isSnapshot.value)
@@ -74,3 +75,31 @@ ghpagesNoJekyll := true
7475
enablePlugins(SiteScaladocPlugin)
7576
siteSubdirName in SiteScaladoc := "api/latest"
7677

78+
// publish
79+
80+
releaseCrossBuild := true
81+
82+
bintrayReleaseOnPublish in ThisBuild := true
83+
84+
publishMavenStyle := true
85+
86+
homepage := Some(url("https://github.com/sfxcode/simple-mongo"))
87+
88+
scmInfo := Some(
89+
ScmInfo(
90+
url("https://github.com/sfxcode/simple-mongo"),
91+
"scm:https://github.com/sfxcode/simple-mongo.git"
92+
)
93+
)
94+
95+
developers := List(
96+
Developer(
97+
id = "sfxcode",
98+
name = "Tom Lamers",
99+
email = "[email protected]",
100+
url = url("https://github.com/sfxcode")
101+
)
102+
)
103+
104+
105+

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=1.1.6
1+
sbt.version=1.2.0

src/test/scala/com/sfxcode/nosql/mongo/converter/Base.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@ package com.sfxcode.nosql.mongo.converter
22

33
import java.util.Date
44

5+
import org.bson.types.ObjectId
6+
57
/**
68
* Created by tom on 22.01.17.
79
*/
8-
case class Base(int: Int, Long: Long, float: Float, double: Double, string: String, date: Date = new Date())
10+
case class Base(int: Int, Long: Long, float: Float, double: Double, string: String, date: Date = new Date(), option: Option[ObjectId] = Some(new ObjectId()))
911

1012
object Base {
1113
def apply(): Base = new Base(1, 2, 3, 4, "test")

0 commit comments

Comments
 (0)