Skip to content

Commit 32d125c

Browse files
committed
feat: add jvm code sources build
1 parent 4729191 commit 32d125c

File tree

5 files changed

+49
-0
lines changed

5 files changed

+49
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
/resources
55
/self-hosted-legacy-tmp
66
/static/self-hosted-legacy
7+
target/

build.sbt

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
import sbt._
2+
import sbt.Keys._
3+
4+
import _root_.io.gatling.build.license.ApacheV2License
5+
6+
kotlinVersion := "2.1.0"
7+
scalaVersion := "2.13.16"
8+
9+
enablePlugins(GatlingAutomatedScalafmtPlugin)
10+
scalafmtOnCompile := false
11+
12+
enablePlugins(GatlingCompilerSettingsPlugin)
13+
14+
enablePlugins(AutomateHeaderPlugin)
15+
headerLicense := ApacheV2License
16+
17+
Compile / javacOptions ++= Seq("-encoding", "utf8")
18+
Test / javacOptions ++= Seq("-encoding", "utf8")
19+
Test / javacOptions += "-Xlint:unchecked"
20+
Test / unmanagedSourceDirectories ++= (baseDirectory.value / "content" ** "code").get
21+
22+
// Dependencies
23+
24+
val gatlingVersion = "3.13.3"
25+
val gatlingGrpcVersion = "3.13.3"
26+
val gatlingMqttVersion = "3.13.3"
27+
28+
libraryDependencies ++= Seq(
29+
// Gatling modules
30+
"io.gatling" % "gatling-core-java" % gatlingVersion,
31+
"io.gatling" % "gatling-http-java" % gatlingVersion,
32+
"io.gatling" % "gatling-jms-java" % gatlingVersion,
33+
"io.gatling" % "gatling-jdbc-java" % gatlingVersion,
34+
"io.gatling" % "gatling-redis-java" % gatlingVersion,
35+
// External Gatling modules
36+
"io.gatling" % "gatling-grpc-java" % gatlingGrpcVersion,
37+
"io.gatling" % "gatling-mqtt-java" % gatlingMqttVersion,
38+
// Other
39+
"org.apache.commons" % "commons-lang3" % "3.17.0",
40+
"commons-codec" % "commons-codec" % "1.17.2",
41+
"software.amazon.awssdk" % "secretsmanager" % "2.30.3",
42+
("org.apache.activemq" % "activemq-broker" % "5.18.6" % Test)
43+
.exclude("jakarta.jms", "jakarta.jms-api")
44+
)

content/reference/script/core/session/feeders/code/FeederSampleJava.java

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import io.gatling.javaapi.redis.*;
2727
import static io.gatling.javaapi.redis.RedisDsl.*;
2828

29+
@SuppressWarnings("unchecked")
2930
class FeederSampleJava {
3031

3132
{

project/build.properties

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sbt.version=1.10.7

project/plugins.sbt

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
addSbtPlugin("io.gatling" % "gatling-build-plugin" % "6.3.0")
2+
addSbtPlugin("io.gatling" % "kotlin-plugin" % "2.0.1")

0 commit comments

Comments
 (0)