-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.sbt
More file actions
64 lines (60 loc) · 2.39 KB
/
build.sbt
File metadata and controls
64 lines (60 loc) · 2.39 KB
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
56
57
58
59
60
61
62
63
64
inThisBuild(List(
organization := "com.dwolla",
description := "A library for streaming healthy service instances in Consul to the RSocket Java load balancer.",
homepage := Some(url("https://github.com/Dwolla/rsocket-consul-java")),
licenses += ("MIT", url("http://opensource.org/licenses/MIT")),
developers := List(
Developer(
"dwolla",
"Dwolla Dev Team",
"dev+github@dwolla.com",
url("https://dwolla.com")
),
),
startYear := Option(2019),
autoScalaLibrary := false,
crossPaths := false,
tlBaseVersion := "0.0",
mergifyStewardConfig ~= { _.map {
_.withAuthor("dwolla-oss-scala-steward[bot]")
.withMergeMinors(true)
}},
githubWorkflowJavaVersions := Seq(JavaSpec.temurin("11"), JavaSpec.temurin("17"), JavaSpec.temurin("21")),
githubWorkflowTargetTags ++= Seq("v*"),
githubWorkflowPublishTargetBranches :=
Seq(RefPredicate.StartsWith(Ref.Tag("v"))),
githubWorkflowPublish := Seq(
WorkflowStep.Sbt(
List("ci-release"),
env = Map(
"PGP_PASSPHRASE" -> "${{ secrets.PGP_PASSPHRASE }}",
"PGP_SECRET" -> "${{ secrets.PGP_SECRET }}",
"SONATYPE_PASSWORD" -> "${{ secrets.SONATYPE_PASSWORD }}",
"SONATYPE_USERNAME" -> "${{ secrets.SONATYPE_USERNAME }}"
)
)
),
tlMimaPreviousVersions += "0.0.6",
))
lazy val `rsocket-consul-java` = (project in file("."))
.settings(
Test / fork := true, // otherwise we get java.net.SocketException: maximum number of DatagramSockets reached
Compile / doc / javacOptions ~= { _.filterNot(_.startsWith("-X")) },
libraryDependencies ++= {
val rsocketVersion = "1.1.5"
Seq(
"io.rsocket" % "rsocket-core" % rsocketVersion,
"io.rsocket" % "rsocket-load-balancer" % rsocketVersion,
"io.rsocket" % "rsocket-transport-netty" % rsocketVersion,
"org.asynchttpclient" % "async-http-client" % "2.14.5",
"com.google.code.gson" % "gson" % "2.13.2",
"org.slf4j" % "slf4j-api" % "2.0.17",
"org.junit.jupiter" % "junit-jupiter" % "5.14.3" % Test,
"org.junit.platform" % "junit-platform-engine" % "1.14.3" % Test,
"org.junit.platform" % "junit-platform-launcher" % "1.14.3" % Test,
"net.aichler" % "jupiter-interface" % JupiterKeys.jupiterVersion.value % Test,
"org.mockito" % "mockito-core" % "5.23.0" % Test,
"org.slf4j" % "slf4j-nop" % "2.0.17" % Test,
)
},
)