-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbuild.sbt
55 lines (46 loc) · 1.9 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import ReleaseTransformations.*
import Dependencies.*
import sbtversionpolicy.withsbtrelease.ReleaseVersion.fromAggregatedAssessedCompatibilityWithLatestRelease
name := "play-googleauth"
ThisBuild / scalaVersion := "2.13.16"
ThisBuild / resolvers ++= Resolver.sonatypeOssRepos("releases") // libraries that haven't yet synced to maven central
val artifactPomMetadataSettings = Seq(
organization := "com.gu.play-googleauth",
licenses := Seq(License.Apache2),
description := "Simple Google authentication module for the Play web framework"
)
def projectWithPlayVersion(playVersion: PlayVersion) =
Project(playVersion.projectId, file(playVersion.projectId)).settings(
crossScalaVersions := Seq(scalaVersion.value, "3.3.5"),
scalacOptions ++= Seq("-feature", "-deprecation", "-release","11"),
Compile / unmanagedSourceDirectories += baseDirectory.value / playVersion.pekkoOrAkkaSrcFolder,
libraryDependencies ++= Seq(
"com.gu.play-secret-rotation" %% "core" % "13.1.2",
"org.typelevel" %% "cats-core" % "2.13.0",
commonsCodec,
"org.scalatest" %% "scalatest" % "3.2.19" % Test,
"software.amazon.awssdk" % "ssm" % "2.29.52" % Test
) ++ googleDirectoryAPI ++ playVersion.playLibs,
artifactPomMetadataSettings
)
lazy val `play-v29` = projectWithPlayVersion(PlayVersion.V29)
lazy val `play-v30` = projectWithPlayVersion(PlayVersion.V30)
lazy val `play-googleauth-root` = (project in file(".")).aggregate(
`play-v29`,
`play-v30`
).settings(
publish / skip := true,
releaseVersion := fromAggregatedAssessedCompatibilityWithLatestRelease().value,
releaseCrossBuild := true, // true if you cross-build the project for multiple Scala versions
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
setNextVersion,
commitNextVersion
)
)