Skip to content

Commit

Permalink
some updates for changes to sbt-pgp
Browse files Browse the repository at this point in the history
  • Loading branch information
sullivan- committed Oct 25, 2017
1 parent 88d6fcc commit dc8f07e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 33 deletions.
19 changes: 4 additions & 15 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ lazy val longevity = project.in(file("longevity"))
libraryDependencies += Dependencies.scalaTestDep % "optional,test",
libraryDependencies += Dependencies.sqliteDep % "optional,test",

homepage := BuildSettings.longevityHomepage,
pomExtra := BuildSettings.longevityPomExtra,

addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full),
addCompilerPlugin("org.spire-math" %% "kind-projector" % "0.9.4"))
.enablePlugins(JekyllPlugin, SiteScaladocPlugin, GhpagesPlugin)
Expand All @@ -50,27 +47,21 @@ lazy val longevityCassandraDeps = Project("longevity-cassandra-deps", file("long
.settings(BuildSettings.publishSettings)
.settings(
libraryDependencies += Dependencies.cassandraDep,
libraryDependencies += Dependencies.json4sDep,
homepage := BuildSettings.longevityHomepage,
pomExtra := BuildSettings.longevityPomExtra)
libraryDependencies += Dependencies.json4sDep)

lazy val longevityMongoDbDeps = Project("longevity-mongodb-deps", file("longevity-mongodb-deps"))
.settings(BuildSettings.publishSettings)
.settings(
libraryDependencies += Dependencies.mongodbDep,
homepage := BuildSettings.longevityHomepage,
pomExtra := BuildSettings.longevityPomExtra)
libraryDependencies += Dependencies.mongodbDep)

lazy val longevitySqliteDeps = Project("longevity-sqlite-deps", file("longevity-sqlite-deps"))
.settings(BuildSettings.publishSettings)
.settings(
libraryDependencies += Dependencies.sqliteDep,
libraryDependencies += Dependencies.json4sDep,
homepage := BuildSettings.longevityHomepage,
pomExtra := BuildSettings.longevityPomExtra)
libraryDependencies += Dependencies.json4sDep)

lazy val longevityMigrations = Project("longevity-migrations", file("longevity-migrations"))
.settings(BuildSettings.buildSettings: _*)
.settings(BuildSettings.buildSettings)
.settings(
libraryDependencies += Dependencies.catsDep,
libraryDependencies += Dependencies.catsIterateeDep,
Expand All @@ -80,8 +71,6 @@ lazy val longevityMigrations = Project("longevity-migrations", file("longevity-m
libraryDependencies += Dependencies.mongodbDep % "test",
libraryDependencies += Dependencies.slf4jSimpleDep % "test",
libraryDependencies += Dependencies.sqliteDep % "test",
homepage := BuildSettings.longevityHomepage,
pomExtra := BuildSettings.longevityPomExtra,
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full),
addCompilerPlugin("org.spire-math" %% "kind-projector" % "0.9.4"))
.dependsOn(longevity)
28 changes: 10 additions & 18 deletions project/BuildSettings.scala
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,16 @@ object BuildSettings {
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
},
licenses := Seq("Apache License, Version 2.0" ->
url("http://www.apache.org/licenses/LICENSE-2.0"))
)
licenses := Seq("Apache License, Version 2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
homepage := Some(url("http://longevityframework.org/")),
scmInfo := Some(ScmInfo(
url("https://github.com/longevityframework/longevity.git"),
"scm:git:git@github.com:longevityframework/longevity.git")),
developers := List(Developer(
id = "sullivan-",
name = "John Sullivan",
email = "John Sullivan MSCS at gmail",
url = url("https://github.com/sullivan-"))))

val buildSettings = publishSettings ++ Seq(
scalacOptions ++= compileScalacOptions,
Expand Down Expand Up @@ -64,21 +71,6 @@ object BuildSettings {
publish := ((): Unit),
publishSigned := ((): Unit))

def longevityHomepage = Some(url("http://longevityframework.org/"))

def longevityPomExtra = (
<scm>
<url>git@github.com:longevityframework/longevity.git</url>
<connection>scm:git:git@github.com:longevityframework/longevity.git</connection>
</scm>
<developers>
<developer>
<id>sullivan-</id>
<name>John Sullivan</name>
<url>https://github.com/sullivan-</url>
</developer>
</developers>)

private def githubUrl = "https://github.com/longevityframework/longevity"

private def compileScalacOptions = Seq(
Expand Down

0 comments on commit dc8f07e

Please sign in to comment.