Skip to content

Commit b7a656a

Browse files
committed
Update smoke test tasks S-Z
1 parent 72a7685 commit b7a656a

File tree

23 files changed

+44
-41
lines changed

23 files changed

+44
-41
lines changed

dd-smoke-tests/spring-boot-2.3-webmvc-jetty/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@ plugins {
22
id 'com.gradleup.shadow'
33
}
44

5-
5+
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
66
import com.github.jengelman.gradle.plugins.shadow.transformers.PropertiesFileTransformer
77

88
apply from: "$rootDir/gradle/java.gradle"
99
description = 'Spring Boot 2.3 Jetty Smoke Tests.'
1010

1111
// The standard spring-boot plugin doesn't play nice with our project
1212
// so we'll build a fat jar instead
13-
jar {
13+
tasks.named("jar", Jar) {
1414
manifest {
1515
attributes('Main-Class': 'datadog.smoketest.springboot.SpringbootApplication')
1616
}
1717
}
1818

19-
shadowJar {
19+
tasks.named("shadowJar", ShadowJar) {
2020
configurations = [project.configurations.runtimeClasspath]
2121
mergeServiceFiles()
2222
append 'META-INF/spring.handlers'

dd-smoke-tests/spring-boot-2.4-webflux/build.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
2+
13
plugins {
24
id 'com.gradleup.shadow'
35
}
@@ -7,13 +9,13 @@ description = 'Spring Boot 2.4 Webflux Smoke Tests.'
79

810
// The standard spring-boot plugin doesn't play nice with our project
911
// so we'll build a fat jar instead
10-
jar {
12+
tasks.named("jar", Jar) {
1113
manifest {
1214
attributes('Main-Class': 'datadog.smoketest.springboot.SpringbootApplication')
1315
}
1416
}
1517

16-
shadowJar {
18+
tasks.named("shadowJar", ShadowJar) {
1719
configurations = [project.configurations.runtimeClasspath]
1820
}
1921

dd-smoke-tests/spring-boot-2.5-webflux/build.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
2+
13
plugins {
24
id 'com.gradleup.shadow'
35
}
@@ -7,13 +9,13 @@ description = 'Spring Boot 2.5 Webflux Smoke Tests.'
79

810
// The standard spring-boot plugin doesn't play nice with our project
911
// so we'll build a fat jar instead
10-
jar {
12+
tasks.named("jar", Jar) {
1113
manifest {
1214
attributes('Main-Class': 'datadog.smoketest.springboot.SpringbootApplication')
1315
}
1416
}
1517

16-
shadowJar {
18+
tasks.named("shadowJar", ShadowJar) {
1719
configurations = [project.configurations.runtimeClasspath]
1820
}
1921

dd-smoke-tests/spring-boot-2.6-webflux/build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
12
import com.github.jengelman.gradle.plugins.shadow.transformers.PropertiesFileTransformer
23

34
plugins {
@@ -9,13 +10,13 @@ description = 'Spring Boot 2.6 Webflux Smoke Tests.'
910

1011
// The standard spring-boot plugin doesn't play nice with our project
1112
// so we'll build a fat jar instead
12-
jar {
13+
tasks.named("jar", Jar) {
1314
manifest {
1415
attributes('Main-Class': 'datadog.smoketest.springboot.SpringbootApplication')
1516
}
1617
}
1718

18-
shadowJar {
19+
tasks.named("shadowJar", ShadowJar) {
1920
configurations = [project.configurations.runtimeClasspath]
2021
mergeServiceFiles()
2122
append 'META-INF/spring.handlers'

dd-smoke-tests/spring-boot-2.6-webmvc/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@ plugins {
33
id 'java-test-fixtures'
44
}
55

6-
6+
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
77
import com.github.jengelman.gradle.plugins.shadow.transformers.PropertiesFileTransformer
88

99
apply from: "$rootDir/gradle/java.gradle"
1010
description = 'Spring Boot 2.6 Webmvc Smoke Tests.'
1111

1212
// The standard spring-boot plugin doesn't play nice with our project
1313
// so we'll build a fat jar instead
14-
jar {
14+
tasks.named("jar", Jar) {
1515
manifest {
1616
attributes('Main-Class': 'datadog.smoketest.springboot.SpringbootApplication')
1717
}
1818
}
1919

20-
shadowJar {
20+
tasks.named("shadowJar", ShadowJar) {
2121
configurations = [project.configurations.runtimeClasspath]
2222
mergeServiceFiles()
2323
append 'META-INF/spring.handlers'

dd-smoke-tests/spring-boot-2.7-webflux/build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
apply from: "$rootDir/gradle/java.gradle"
32

43
description = 'Spring Boot 2.7 Webflux Smoke Tests.'
@@ -31,7 +30,7 @@ tasks.register('webfluxBuild', Exec) {
3130
.withPathSensitivity(PathSensitivity.RELATIVE)
3231
}
3332

34-
webfluxBuild {
33+
tasks.named("webfluxBuild", Exec) {
3534
dependsOn project(':dd-trace-api').tasks.named("jar")
3635
}
3736

dd-smoke-tests/spring-boot-3.0-webflux/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ tasks.register('webfluxBuild30', Exec) {
3535
.withPathSensitivity(PathSensitivity.RELATIVE)
3636
}
3737

38-
webfluxBuild30 {
38+
tasks.named("webfluxBuild30", Exec) {
3939
dependsOn project(':dd-trace-api').tasks.named("jar")
4040
}
4141

dd-smoke-tests/spring-boot-3.0-webmvc/build.gradle

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,8 @@ tasks.register('webmvcBuild30', Exec) {
3535
.withPathSensitivity(PathSensitivity.RELATIVE)
3636
}
3737

38-
compileTestGroovy {
38+
tasks.named("compileTestGroovy", GroovyCompile) {
3939
dependsOn project(':dd-trace-api').tasks.named("jar")
40-
}
41-
42-
tasks.named("compileTestGroovy") {
4340
dependsOn 'webmvcBuild30'
4441
outputs.upToDateWhen {
4542
!webmvcBuild30.didWork

dd-smoke-tests/spring-boot-3.3-webmvc/build.gradle

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,8 @@ tasks.register('webmvcBuild3', Exec) {
3535
.withPathSensitivity(PathSensitivity.RELATIVE)
3636
}
3737

38-
compileTestGroovy {
38+
tasks.named("compileTestGroovy", GroovyCompile) {
3939
dependsOn project(':dd-trace-api').tasks.named("jar")
40-
}
41-
42-
tasks.named("compileTestGroovy") {
4340
dependsOn 'webmvcBuild3'
4441
outputs.upToDateWhen {
4542
!webmvcBuild3.didWork

dd-smoke-tests/spring-boot-rabbit/build.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
2+
13
plugins {
24
id 'com.gradleup.shadow'
35
}
@@ -7,13 +9,13 @@ description = 'SpringBoot RabbitMQ Smoke Tests.'
79

810
// The standard spring-boot plugin doesn't play nice with our project
911
// so we'll build a fat jar instead
10-
jar {
12+
tasks.named("jar", Jar) {
1113
manifest {
1214
attributes('Main-Class': 'datadog.smoketest.springboot.SpringbootApplication')
1315
}
1416
}
1517

16-
shadowJar {
18+
tasks.named("shadowJar", ShadowJar) {
1719
configurations = [project.configurations.runtimeClasspath]
1820
}
1921

0 commit comments

Comments
 (0)