Skip to content

Commit 497bd13

Browse files
authored
Removes unneeded task configuration for forkedTest (#9817)
* fix: Removes unneeded eager task configuration * fix: Makes forkedTest part of the verification group * fix: Preview bnd builder plugin was modifying the configurations after dependency locking
1 parent e5eceed commit 497bd13

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

dd-smoke-tests/osgi/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import aQute.bnd.gradle.Bundle
22

33
plugins {
4-
id 'biz.aQute.bnd.builder' version '6.1.0' apply true
4+
id 'biz.aQute.bnd.builder' version '6.4.0' apply true
55
}
66

77
repositories {
@@ -70,6 +70,7 @@ def clientBundle = tasks.register('clientBundle', Bundle) {
7070
attributes('Bundle-Activator': 'datadog.smoketest.osgi.client.Activator')
7171
}
7272
}
73+
clientBundle.get()
7374

7475
def messagingBundle = tasks.register('messagingBundle', Bundle) {
7576
archiveClassifier = 'messaging'

gradle/java_no_deps.gradle

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,9 @@ ext.testcontainersLimit = gradle.sharedServices.registerIfAbsent("testcontainers
124124
}
125125

126126
// Task for tests that want to run forked in their own separate JVM
127-
if (tasks.matching({ it.name == 'forkedTest' }).empty) {
128-
tasks.register('forkedTest', Test) {
129-
useJUnitPlatform()
130-
}
127+
tasks.register('forkedTest', Test) {
128+
group = LifecycleBasePlugin.VERIFICATION_GROUP
129+
useJUnitPlatform()
131130
}
132131

133132
def applyCodeCoverage = !(

0 commit comments

Comments
 (0)