Skip to content

Commit 79fb383

Browse files
committed
chore: Lazy task access
1 parent 05808d8 commit 79fb383

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

dd-java-agent/instrumentation/mule-4.5/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,15 +207,15 @@ def copyMuleArtifacts(String configName, String muleBaseDir, Sync sync) {
207207

208208
// extract the enabled services into the mule base directory
209209
tasks.register('extractMuleServices', Sync) {
210-
dependsOn configurations.muleServices
210+
dependsOn configurations.named('muleServices')
211211
copyMuleArtifacts("muleServices", "$buildDir/mule/test", it)
212212
}
213213
tasks.register('extractMule46Services', Sync) {
214-
dependsOn configurations.mule46Services
214+
dependsOn configurations.named('mule46Services')
215215
copyMuleArtifacts("mule46Services", "$buildDir/mule/mule46ForkedTest", it)
216216
}
217217
tasks.register('extractLatestMuleServices', Sync) {
218-
dependsOn configurations.latestMuleServices
218+
dependsOn configurations.named('latestMuleServices')
219219
copyMuleArtifacts("latestMuleServices", "$buildDir/mule/latestDepForkedTest", it)
220220
}
221221

dd-java-agent/instrumentation/rmi/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ tasks.withType(JavaCompile).configureEach {
1616
}
1717

1818
def rmic = tasks.register('rmic', Exec) {
19-
dependsOn testClasses
19+
dependsOn 'testClasses'
2020

2121
Provider<JavaLauncher> javaLauncher = getJavaLauncherFor(8)
2222
def toolchainPath = javaLauncher.get().metadata.installationPath

dd-java-agent/instrumentation/scalatest/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ dependencies {
2424
}
2525

2626
tasks.named("compileTestGroovy", GroovyCompile) {
27-
dependsOn compileTestScala
27+
dependsOn 'compileTestScala'
2828
classpath += files(sourceSets.test.scala.destinationDirectory)
2929
}
3030

3131
tasks.named("compileLatestDepTestGroovy", GroovyCompile) {
32-
dependsOn compileLatestDepTestScala
32+
dependsOn 'compileLatestDepTestScala'
3333
classpath += files(sourceSets.latestDepTest.scala.destinationDirectory)
3434
}
3535

dd-java-agent/instrumentation/weaver/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,16 @@ dependencies {
3131
}
3232

3333
tasks.named("compileTestGroovy", GroovyCompile) {
34-
dependsOn compileTestScala
34+
dependsOn 'compileTestScala'
3535
classpath += files(sourceSets.test.scala.destinationDirectory)
3636
}
3737

3838
tasks.named("compileLatestDepTestGroovy", GroovyCompile) {
39-
dependsOn compileLatestDepTestScala
39+
dependsOn 'compileLatestDepTestScala'
4040
classpath += files(sourceSets.latestDepTest.scala.destinationDirectory)
4141
}
4242

4343
tasks.named("compileWeaver084TestGroovy", GroovyCompile) {
44-
dependsOn compileWeaver084TestScala
44+
dependsOn 'compileWeaver084TestScala'
4545
classpath += files(sourceSets.weaver084Test.scala.destinationDirectory)
4646
}

dd-smoke-tests/quarkus-native/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ if (version >= 17) {
5555
inputs.file(project(':dd-java-agent').tasks.shadowJar.archiveFile.get()).withPropertyName('agentJar')
5656
}
5757

58-
quarkusNativeBuild {
58+
tasks.named('quarkusNativeBuild') {
5959
dependsOn project(':dd-trace-api').tasks.named("jar") // Use dev @Trace annotation
6060
dependsOn project(':dd-java-agent').tasks.named('shadowJar') // Use dev agent
6161
}

0 commit comments

Comments
 (0)