-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from sh0hei/hello-scalafmt
Hello, scalafmt
- Loading branch information
Showing
6 changed files
with
99 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
version = 2.7.5 | ||
|
||
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 | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,13 +4,15 @@ mimaPreviousArtifacts := Set("org.sangria-graphql" %% "sangria-play-json" % "2.0 | |
|
||
description := "Sangria play-json marshalling" | ||
homepage := Some(url("http://sangria-graphql.org")) | ||
licenses := Seq("Apache License, ASL Version 2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")) | ||
licenses := Seq( | ||
"Apache License, ASL Version 2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")) | ||
|
||
ThisBuild / crossScalaVersions := Seq("2.12.13", "2.13.4") | ||
ThisBuild / scalaVersion := crossScalaVersions.value.last | ||
ThisBuild / githubWorkflowPublishTargetBranches := List() | ||
ThisBuild / githubWorkflowBuildPreamble ++= List( | ||
WorkflowStep.Sbt(List("mimaReportBinaryIssues"), name = Some("Check binary compatibility")) | ||
WorkflowStep.Sbt(List("mimaReportBinaryIssues"), name = Some("Check binary compatibility")), | ||
WorkflowStep.Sbt(List("scalafmtCheckAll"), name = Some("Check formatting")) | ||
) | ||
|
||
scalacOptions += "-target:jvm-1.8" | ||
|
@@ -21,9 +23,9 @@ scalacOptions ++= Seq("-deprecation", "-feature") | |
libraryDependencies ++= Seq( | ||
"org.sangria-graphql" %% "sangria-marshalling-api" % "1.0.5", | ||
"com.typesafe.play" %% "play-json" % "2.9.2", | ||
|
||
"org.sangria-graphql" %% "sangria-marshalling-testkit" % "1.0.3" % Test, | ||
"org.scalatest" %% "scalatest" % "3.2.3" % Test) | ||
"org.scalatest" %% "scalatest" % "3.2.3" % Test | ||
) | ||
|
||
// Publishing | ||
|
||
|
@@ -34,15 +36,20 @@ publishArtifact in Test := false | |
pomIncludeRepository := (_ => false) | ||
publishTo := Some( | ||
if (version.value.trim.endsWith("SNAPSHOT")) | ||
"snapshots" at "https://oss.sonatype.org/content/repositories/snapshots" | ||
"snapshots".at("https://oss.sonatype.org/content/repositories/snapshots") | ||
else | ||
"releases" at "https://oss.sonatype.org/service/local/staging/deploy/maven2") | ||
"releases".at("https://oss.sonatype.org/service/local/staging/deploy/maven2")) | ||
startYear := Some(2016) | ||
organizationHomepage := Some(url("https://github.com/sangria-graphql")) | ||
developers := Developer("OlegIlyenko", "Oleg Ilyenko", "", url("https://github.com/OlegIlyenko")) :: Nil | ||
scmInfo := Some(ScmInfo( | ||
browseUrl = url("https://github.com/sangria-graphql/sangria-play-json.git"), | ||
connection = "scm:git:[email protected]:sangria-graphql/sangria-play-json.git")) | ||
developers := Developer( | ||
"OlegIlyenko", | ||
"Oleg Ilyenko", | ||
"", | ||
url("https://github.com/OlegIlyenko")) :: Nil | ||
scmInfo := Some( | ||
ScmInfo( | ||
browseUrl = url("https://github.com/sangria-graphql/sangria-play-json.git"), | ||
connection = "scm:git:[email protected]:sangria-graphql/sangria-play-json.git")) | ||
|
||
// nice *magenta* prompt! | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters