-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.sbt
More file actions
97 lines (84 loc) · 2.57 KB
/
build.sbt
File metadata and controls
97 lines (84 loc) · 2.57 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
name := "openapi2proto"
version := "0.2"
scalaVersion := "2.13.1"
resolvers ++= Dependencies.resolvers
libraryDependencies ++= Dependencies.common
scalacOptions ++= Seq(
"-deprecation",
"-encoding",
"utf-8",
"-explaintypes",
"-feature",
"-language:_",
"-release",
"11",
"-opt:l:inline",
"-opt-warnings:_",
"-unchecked",
"-Xlint:_",
"-Ybackend-parallelism",
"8",
"-Ywarn-dead-code",
"-Ywarn-extra-implicit",
"-Ywarn-numeric-widen",
"-Ywarn-unused:_",
"-Ywarn-value-discard"
)
javaOptions in (Test, run) ++= Seq(
"--add-modules=java.xml.bind",
"--illegal-access=permit",
"-Djava.security.egd=file:/dev/urandom",
"-Dscala.concurrent.context.maxExtraThreads=0",
"-Duser.timezone=Europe/Moscow",
"-server",
"-Xms2g",
"-Xmx4g",
"-Xss6m",
"-XX:+AggressiveOpts",
"-XX:+AlwaysPreTouch",
"-XX:+DisableExplicitGC",
"-XX:+TieredCompilation",
"-XX:+UnlockDiagnosticVMOptions",
"-XX:+UnlockExperimentalVMOptions",
"-XX:+UseCGroupMemoryLimitForHeap",
"-XX:+EnableJVMCI",
"-XX:+UseJVMCICompiler",
"-XX:InitialRAMFraction=1",
"-XX:MaxRAMFraction=1",
"-XX:MinRAMFraction=1",
"-XX:+UseAES",
"-XX:+UseAESIntrinsics",
"-XX:+UseG1GC",
"-XX:+UseStringDeduplication",
"-XX:-UseBiasedLocking",
"-XX:ConcGCThreads=5",
"-XX:G1HeapRegionSize=16m",
"-XX:G1MaxNewSizePercent=80",
"-XX:G1MixedGCLiveThresholdPercent=50",
"-XX:G1NewSizePercent=50",
"-XX:InitiatingHeapOccupancyPercent=10",
"-XX:MaxGCPauseMillis=100",
"-XX:NewSize=512m",
"-XX:ParallelGCThreads=20",
"-XX:ReservedCodeCacheSize=256m",
"-XX:TargetSurvivorRatio=90"
)
addCompilerPlugin("com.olegpy" %% "better-monadic-for" % "0.3.1")
// GraalVM packaging
enablePlugins(GraalVMNativeImagePlugin)
graalVMNativeImageOptions += "--no-server"
graalVMNativeImageOptions += "--no-fallback"
graalVMNativeImageOptions += "--allow-incomplete-classpath"
graalVMNativeImageOptions += "--report-unsupported-elements-at-runtime"
graalVMNativeImageOptions += "--initialize-at-build-time"
graalVMNativeImageOptions += "-H:UnsafeAutomaticSubstitutionsLogLevel=3"
graalVMNativeImageOptions += "-H:+ReportExceptionStackTraces"
// RPM packaging
enablePlugins(JavaServerAppPackaging, RpmPlugin, SystemdPlugin)
normalizedName := "openapi2proto"
packageName in Rpm := normalizedName.value
rpmVendor := "org.github.mitallast"
rpmLicense := Some("MIT")
daemonUser in Linux := "openapi2proto"
daemonGroup in Linux := "openapi2proto"
javaOptions in Universal ++= Seq("server", "--host 0.0.0.0", "--port 8081")