-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathbuild.gradle
More file actions
90 lines (79 loc) · 2.38 KB
/
Copy pathbuild.gradle
File metadata and controls
90 lines (79 loc) · 2.38 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
plugins {
id 'java-gradle-plugin'
id 'groovy'
id 'com.gradle.plugin-publish' version "2.0.0"
id("com.diffplug.spotless") version "8.0.0"
}
group = "gradle.plugin.io.gatling.gradle"
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(11))
}
}
tasks {
test {
// highest Java version supported by the current Gradle range we support (see GatlingFuncSpec)
javaLauncher.set(javaToolchains.launcherFor {
languageVersion.set(JavaLanguageVersion.of(21))
})
}
}
jar {
manifest {
attributes 'Implementation-Version': project.version
}
}
repositories {
mavenCentral()
gradlePluginPortal()
}
dependencies {
implementation "io.gatling:gatling-enterprise-plugin-commons:1.26.0"
implementation "io.gatling:gatling-shared-cli:0.0.6"
testImplementation('org.spockframework:spock-core:2.3-groovy-4.0') {
exclude module: 'groovy'
}
testImplementation 'org.spockframework:spock-junit4:2.3-groovy-4.0'
testImplementation('com.github.stefanbirkner:system-rules:1.19.0') {
exclude module: 'junit-dep'
}
testImplementation "org.junit.jupiter:junit-jupiter:5.12.2"
testRuntimeOnly "org.junit.platform:junit-platform-launcher:1.12.2"
testImplementation "commons-io:commons-io:2.19.0"
}
test {
testLogging {
events = ["passed", "skipped", "failed"]
exceptionFormat = "full"
showStandardStreams = false
}
useJUnitPlatform()
// required for Spock, see https://docs.gradle.org/current/userguide/upgrading_version_7.html#remove_test_add_opens
jvmArgs = ["--add-opens=java.base/java.util=ALL-UNNAMED"]
}
gradlePlugin {
website.set("https://github.com/gatling/gatling-gradle-plugin")
vcsUrl.set("https://github.com/gatling/gatling-gradle-plugin")
plugins {
create("gatlingPlugin") {
id = "io.gatling.gradle"
implementationClass = "io.gatling.gradle.GatlingPlugin"
displayName = "Gatling plugin for Gradle"
description = "Gatling plugin for Gradle"
tags.addAll("gatling", "load test", "stress test", "performance test", "java", "scala", "kotlin")
}
}
}
spotless {
groovy {
importOrder()
removeSemicolons()
greclipse().configFile(rootProject.files("src/etc/greclipse.properties"))
licenseHeaderFile("src/etc/header.txt")
}
groovyGradle {
target '*.gradle'
greclipse().configFile(rootProject.files("src/etc/greclipse.properties"))
}
}
validatePlugins.failOnWarning = false