Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1 from Banno/getWorking
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherDavenport authored Jun 11, 2020
2 parents c71428e + 830832f commit 3efcfd0
Show file tree
Hide file tree
Showing 8 changed files with 392 additions and 230 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on: [push, pull_request]
env:
CI: true
CI_SNAPSHOT_RELEASE: +publishSigned
SCALA_VERSION: 2.12.13
SCALA_VERSION: 2.12.11
jobs:
validate:
name: Scala ${{ matrix.scala }}, Java ${{ matrix.java }}
Expand All @@ -12,7 +12,7 @@ jobs:
fail-fast: false
matrix:
java: [[email protected], [email protected], [email protected]]
scala: [2.12.13, 2.13.1]
scala: [2.12.11, 2.13.1]
env:
SCALA_VERSION: ${{ matrix.scala }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- '*'
env:
CI: true
SCALA_VERSION: 2.12.13
SCALA_VERSION: 2.12.11
jobs:
release:
name: Release
Expand Down
18 changes: 18 additions & 0 deletions .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version = 2.5.3

style = default

maxColumn = 100

// Vertical alignment is pretty, but leads to bigger diffs
align.preset = none

danglingParentheses.preset = false

rewrite.rules = [
AvoidInfix
RedundantBraces
RedundantParens
AsciiSortImports
PreferCurlyFors
]
89 changes: 50 additions & 39 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,28 @@ val kindProjectorV = "0.11.0"
val betterMonadicForV = "0.3.1"

// Projects
lazy val `cosmos4s` = project.in(file("."))
lazy val `cosmos4s` = project
.in(file("."))
.disablePlugins(MimaPlugin)
.enablePlugins(NoPublishPlugin)
.aggregate(core)

lazy val core = project.in(file("core"))
lazy val core = project
.in(file("core"))
.settings(commonSettings)
.settings(
name := "cosmos4s"
)

lazy val site = project.in(file("site"))
lazy val site = project
.in(file("site"))
.disablePlugins(MimaPlugin)
.enablePlugins(MicrositesPlugin)
.enablePlugins(MdocPlugin)
.enablePlugins(NoPublishPlugin)
.settings(commonSettings)
.dependsOn(core)
.settings{
.settings {
import microsites._
Seq(
micrositeName := "cosmos4s",
Expand Down Expand Up @@ -62,51 +65,59 @@ lazy val site = project.in(file("site"))
micrositePushSiteWith := GitHub4s,
micrositeGithubToken := sys.env.get("GITHUB_TOKEN"),
micrositeExtraMdFiles := Map(
file("CODE_OF_CONDUCT.md") -> ExtraMdFileConfig("code-of-conduct.md", "page", Map("title" -> "code of conduct", "section" -> "code of conduct", "position" -> "100")),
file("LICENSE") -> ExtraMdFileConfig("license.md", "page", Map("title" -> "license", "section" -> "license", "position" -> "101"))
file("CODE_OF_CONDUCT.md") -> ExtraMdFileConfig(
"code-of-conduct.md",
"page",
Map("title" -> "code of conduct", "section" -> "code of conduct", "position" -> "100")),
file("LICENSE") -> ExtraMdFileConfig(
"license.md",
"page",
Map("title" -> "license", "section" -> "license", "position" -> "101"))
)
)
}

// General Settings
lazy val commonSettings = Seq(
scalaVersion := "2.13.1",
crossScalaVersions := Seq(scalaVersion.value, "2.12.13"),

addCompilerPlugin("org.typelevel" %% "kind-projector" % kindProjectorV cross CrossVersion.full),
addCompilerPlugin("com.olegpy" %% "better-monadic-for" % betterMonadicForV),

crossScalaVersions := Seq(scalaVersion.value, "2.12.11"),
addCompilerPlugin(
("org.typelevel" %% "kind-projector" % kindProjectorV).cross(CrossVersion.full)),
addCompilerPlugin("com.olegpy" %% "better-monadic-for" % betterMonadicForV),
libraryDependencies ++= Seq(
"com.azure" % "azure-cosmos" % "4.0.1-beta.2",

"org.typelevel" %% "cats-core" % catsV,
"org.typelevel" %% "cats-effect" % catsEffectV,

"co.fs2" %% "fs2-reactive-streams" % fs2V,

"io.circe" %% "circe-core" % circeV,
"io.circe" %% "circe-parser" % circeV,
"io.circe" %% "circe-jackson210" % "0.13.0",

"org.specs2" %% "specs2-core" % specs2V % Test,
"org.specs2" %% "specs2-scalacheck" % specs2V % Test
"com.azure" % "azure-cosmos" % "4.0.1-beta.2",
"org.typelevel" %% "cats-core" % catsV,
"org.typelevel" %% "cats-effect" % catsEffectV,
"co.fs2" %% "fs2-reactive-streams" % fs2V,
"io.circe" %% "circe-core" % circeV,
"io.circe" %% "circe-parser" % circeV,
"io.circe" %% "circe-jackson210" % "0.13.0",
"org.specs2" %% "specs2-core" % specs2V % Test,
"org.specs2" %% "specs2-scalacheck" % specs2V % Test
)
)

// General Settings
inThisBuild(List(
organization := "com.banno",
developers := List(
Developer("ChristopherDavenport", "Christopher Davenport", "[email protected]", url("https://github.com/ChristopherDavenport"))
),

homepage := Some(url("https://github.com/Banno/cosmos4s")),
licenses += ("Apache-2.0", new URL("https://www.apache.org/licenses/LICENSE-2.0.txt")),

pomIncludeRepository := { _ => false},
scalacOptions in (Compile, doc) ++= Seq(
inThisBuild(
List(
organization := "com.banno",
developers := List(
Developer(
"ChristopherDavenport",
"Christopher Davenport",
"[email protected]",
url("https://github.com/ChristopherDavenport"))
),
homepage := Some(url("https://github.com/Banno/cosmos4s")),
organizationName := "Jack Henry & Associates, Inc.®",
startYear := Some(2020),
licenses += ("Apache-2.0", new URL("https://www.apache.org/licenses/LICENSE-2.0.txt")),
pomIncludeRepository := { _ => false },
scalacOptions in (Compile, doc) ++= Seq(
"-groups",
"-sourcepath", (baseDirectory in LocalRootProject).value.getAbsolutePath,
"-doc-source-url", "https://github.com/banno/cosmos4s/blob/v" + version.value + "€{FILE_PATH}.scala"
)
))
"-sourcepath",
(baseDirectory in LocalRootProject).value.getAbsolutePath,
"-doc-source-url",
"https://github.com/banno/cosmos4s/blob/v" + version.value + "€{FILE_PATH}.scala"
)
))
Loading

0 comments on commit 3efcfd0

Please sign in to comment.