0c5b83aa74
Added Gatlin Setup and a test "test".
33 lines
918 B
Groovy
33 lines
918 B
Groovy
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'
|
|
}
|