-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update scalafmt-core to 3.7.14 (#250)
* Update scalafmt-core to 3.7.14 * Reformat with scalafmt 3.7.14 Executed command: scalafmt --non-interactive * Add 'Reformat with scalafmt 3.7.14' to .git-blame-ignore-revs
- Loading branch information
1 parent
acb4046
commit 457f7e2
Showing
19 changed files
with
215 additions
and
193 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Scala Steward: Reformat with scalafmt 3.7.14 | ||
5322317e378d136bf4d876be5d68dd5c9a637fa2 |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
version = "3.5.9" | ||
version = "3.7.14" | ||
runner.dialect = scala212 | ||
maxColumn = 120 | ||
project.git = true | ||
|
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 |
---|---|---|
@@ -1,105 +1,93 @@ | ||
import CustomGithubActions.{aggregateCC, generateCC, uploadCC} | ||
import sbt.* | ||
import sbt.Keys.* | ||
import sbt.Defaults.* | ||
import xerial.sbt.Sonatype.* | ||
import ReleaseTransformations.* | ||
import CustomGithubActions.* | ||
import CustomGithubActions.aggregateCC | ||
import CustomGithubActions.generateCC | ||
import CustomGithubActions.uploadCC | ||
import Dependencies.* | ||
import ReleaseTransformations.* | ||
import ScalaVer.* | ||
import CustomGithubActions.* | ||
|
||
import java.net.URL | ||
|
||
import sbt.* | ||
import sbt.Defaults.* | ||
import sbt.Keys.* | ||
import xerial.sbt.Sonatype.* | ||
|
||
// https://github.com/xerial/sbt-sonatype/issues/71 | ||
ThisBuild / publishTo := sonatypePublishTo.value | ||
ThisBuild / publishTo := sonatypePublishTo.value | ||
ThisBuild / githubWorkflowTargetPaths := Paths.Ignore(List("**.md")) | ||
ThisBuild / githubWorkflowScalaVersions := ScalaVer.values.map(_.full) | ||
ThisBuild / githubWorkflowPublishTargetBranches := Seq() | ||
ThisBuild / githubWorkflowJavaVersions := Seq(JavaSpec.temurin("11")) | ||
ThisBuild / githubWorkflowBuildPostamble := Seq(generateCC, aggregateCC, uploadCC) | ||
|
||
lazy val commons = ScalaVer.settings ++ Seq( | ||
|
||
organization := "com.github.andyglow", | ||
|
||
homepage := Some(new URL("http://github.com/andyglow/websocket-scala-client")), | ||
|
||
startYear := Some(2019), | ||
|
||
organizationName := "andyglow", | ||
|
||
scalacOptions := CompilerOptions(scalaV.value), | ||
|
||
Compile / doc / scalacOptions ++= Seq( | ||
"-groups", | ||
"-implicits", | ||
"-no-link-warnings"), | ||
|
||
licenses := Seq(("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0"))), | ||
|
||
sonatypeProfileName := "com.github.andyglow", | ||
|
||
publishMavenStyle := true, | ||
|
||
sonatypeProjectHosting := Some( | ||
GitHubHosting( | ||
"andyglow", | ||
"websocket-scala-client", | ||
"[email protected]")), | ||
|
||
scmInfo := Some( | ||
ScmInfo( | ||
url("https://github.com/andyglow/websocket-scala-client"), | ||
"scm:[email protected]:andyglow/websocket-scala-client.git")), | ||
|
||
developers := List( | ||
Developer( | ||
id = "andyglow", | ||
name = "Andriy Onyshchuk", | ||
email = "[email protected]", | ||
url = url("https://ua.linkedin.com/in/andyglow"))), | ||
|
||
releaseCrossBuild := true, | ||
|
||
releasePublishArtifactsAction := PgpKeys.publishSigned.value, | ||
|
||
releaseProcess := Seq[ReleaseStep]( | ||
checkSnapshotDependencies, | ||
inquireVersions, | ||
runClean, | ||
runTest, | ||
setReleaseVersion, | ||
commitReleaseVersion, | ||
tagRelease, | ||
ReleaseStep(action = Command.process("publishSigned", _), enableCrossBuild = true), | ||
setNextVersion, | ||
commitNextVersion, | ||
ReleaseStep(action = Command.process("sonatypeReleaseAll", _), enableCrossBuild = true), | ||
pushChanges), | ||
|
||
libraryDependencies ++= Seq( | ||
"org.scalatest" %% "scalatest" % "3.2.17" % Test, | ||
"org.mockito" % "mockito-core" % "5.6.0" % Test | ||
organization := "com.github.andyglow", | ||
homepage := Some(new URL("http://github.com/andyglow/websocket-scala-client")), | ||
startYear := Some(2019), | ||
organizationName := "andyglow", | ||
scalacOptions := CompilerOptions(scalaV.value), | ||
Compile / doc / scalacOptions ++= Seq("-groups", "-implicits", "-no-link-warnings"), | ||
licenses := Seq(("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0"))), | ||
sonatypeProfileName := "com.github.andyglow", | ||
publishMavenStyle := true, | ||
sonatypeProjectHosting := Some(GitHubHosting("andyglow", "websocket-scala-client", "[email protected]")), | ||
scmInfo := Some( | ||
ScmInfo( | ||
url("https://github.com/andyglow/websocket-scala-client"), | ||
"scm:[email protected]:andyglow/websocket-scala-client.git" | ||
) | ||
), | ||
developers := List( | ||
Developer( | ||
id = "andyglow", | ||
name = "Andriy Onyshchuk", | ||
email = "[email protected]", | ||
url = url("https://ua.linkedin.com/in/andyglow") | ||
) | ||
), | ||
releaseCrossBuild := true, | ||
releasePublishArtifactsAction := PgpKeys.publishSigned.value, | ||
releaseProcess := Seq[ReleaseStep]( | ||
checkSnapshotDependencies, | ||
inquireVersions, | ||
runClean, | ||
runTest, | ||
setReleaseVersion, | ||
commitReleaseVersion, | ||
tagRelease, | ||
ReleaseStep(action = Command.process("publishSigned", _), enableCrossBuild = true), | ||
setNextVersion, | ||
commitNextVersion, | ||
ReleaseStep(action = Command.process("sonatypeReleaseAll", _), enableCrossBuild = true), | ||
pushChanges | ||
), | ||
libraryDependencies ++= Seq( | ||
"org.scalatest" %% "scalatest" % "3.2.17" % Test, | ||
"org.mockito" % "mockito-core" % "5.6.0" % Test | ||
) | ||
) | ||
|
||
resolvers ++= Seq("snapshots", "releases").flatMap(Resolver.sonatypeOssRepos) | ||
|
||
lazy val root = (project in file(".")) | ||
.configs(Examples) | ||
.settings(inConfig(Examples)(compileBase ++ compileSettings ++ Seq( | ||
run := Defaults.runTask(Examples / fullClasspath , run / mainClass, run / runner).evaluated, | ||
runMain := Defaults.runMainTask(Examples / fullClasspath, run / runner).evaluated))) | ||
.settings( | ||
commons, | ||
name := "websocket-scala-client", | ||
libraryDependencies ++= Seq( | ||
nettyAll, | ||
nettyHttp, | ||
scalaStm, | ||
slf4jApi, | ||
slf4jSimple, | ||
akkaHttp(scalaVersion.value).cross(CrossVersion.binary), | ||
akkaStream(scalaVersion.value).cross(CrossVersion.binary))) | ||
|
||
inConfig(Examples)( | ||
compileBase ++ compileSettings ++ Seq( | ||
run := Defaults.runTask(Examples / fullClasspath, run / mainClass, run / runner).evaluated, | ||
runMain := Defaults.runMainTask(Examples / fullClasspath, run / runner).evaluated | ||
) | ||
) | ||
) | ||
.settings( | ||
commons, | ||
name := "websocket-scala-client", | ||
libraryDependencies ++= Seq( | ||
nettyAll, | ||
nettyHttp, | ||
scalaStm, | ||
slf4jApi, | ||
slf4jSimple, | ||
akkaHttp(scalaVersion.value).cross(CrossVersion.binary), | ||
akkaStream(scalaVersion.value).cross(CrossVersion.binary) | ||
) | ||
) |
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
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
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
Oops, something went wrong.