feat(Gatlin): Setup
Added Gatlin Setup and a test "test".
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
plugins {
|
||||
id 'scala'
|
||||
id 'io.gatling.gradle' version '3.15.0.1'
|
||||
}
|
||||
|
||||
gatling {
|
||||
enterprise {
|
||||
// Enterprise Cloud configuration reference: https://docs.gatling.io/reference/integrations/build-tools/gradle-plugin/#running-your-simulations-on-gatling-enterprise-cloud
|
||||
}
|
||||
}
|
||||
|
||||
tasks.withType(ScalaCompile) {
|
||||
scalaCompileOptions.forkOptions.with {
|
||||
jvmArgs = ['-Xss100m'] // Scala compiler may require a larger stack size when compiling Gatling simulations
|
||||
}
|
||||
}
|
||||
|
||||
tasks.withType(io.gatling.gradle.GatlingRunTask) {
|
||||
jvmArgs = [
|
||||
'--add-opens=java.base/java.lang=ALL-UNNAMED',
|
||||
"-Dtarget.baseUrl=${findProperty('baseUrl') ?: 'http://localhost:8080'}",
|
||||
"-Dgatling.authToken=${findProperty('authToken') ?: System.getenv('GATLING_AUTH_TOKEN') ?: ''}"
|
||||
]
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'org.scala-lang:scala-library:2.13.16'
|
||||
}
|
||||
Reference in New Issue
Block a user