Skip to content

Commit aee3429

Browse files
committed
chore: Enables logging on agent indexer
1 parent 06ae965 commit aee3429

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

dd-java-agent/build.gradle

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,10 @@ tasks.named("shadowJar", ShadowJar) {
221221
}
222222
}
223223

224+
project.configurations.register('slf4j-simple') {
225+
it.dependencies.add(project.dependencyFactory.create("org.slf4j:slf4j-simple:${libs.versions.slf4j.get()}"))
226+
}
227+
224228
tasks.register('generateAgentJarIndex', JavaExec) {
225229
def indexName = 'dd-java-agent.index'
226230
def contentDir = "${sourceSets.main.output.resourcesDir}"
@@ -231,7 +235,9 @@ tasks.register('generateAgentJarIndex', JavaExec) {
231235
it.inputs.files(fileTree(contentDir).exclude(indexName))
232236
it.outputs.files(indexFile)
233237
it.mainClass = 'datadog.trace.bootstrap.AgentJarIndex$IndexGenerator'
234-
it.classpath = project.configurations.shadowInclude
238+
it.classpath = objects.fileCollection()
239+
.from(project.configurations.named("shadowInclude"))
240+
.from(project.configurations.named('slf4j-simple'))
235241
it.args = [contentDir]
236242

237243
dependsOn 'processResources'

0 commit comments

Comments
 (0)