Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion dd-java-agent/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -347,8 +347,11 @@ def generateAgentJarIndex = tasks.register('generateAgentJarIndex', JavaExec) {
it.mainClass = 'datadog.trace.bootstrap.AgentJarIndex$IndexGenerator'

it.inputs.files(includedJarFileTree)
it.inputs.files(it.classpath)
.withPropertyName("includedAgentFiles")
.withPathSensitivity(PathSensitivity.RELATIVE)
it.outputs.dir(destinationDir)
.withPropertyName("agentJarIndex")
it.outputs.cacheIf { true }
it.classpath = objects.fileCollection().tap {
it.from(project.configurations.named("shadowInclude"))
it.from(project.configurations.named('slf4j-simple'))
Expand Down
3 changes: 2 additions & 1 deletion dd-java-agent/instrumentation/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,9 @@ TaskProvider<JavaExec> registerIndexTask(String indexTaskName, String indexer, S
it.from(project.configurations.named("runtimeClasspath"))
it.from(project.configurations.named('slf4j-simple'))
}
it.inputs.files(it.classpath)
it.outputs.dir(destinationDir)
.withPropertyName("indexDirectory")
it.outputs.cacheIf { true }
Comment thread
bric3 marked this conversation as resolved.
it.argumentProviders.add(new CommandLineArgumentProvider() {
@Override
Iterable<String> asArguments() {
Expand Down
Loading