File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff 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+
224228tasks. 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'
You can’t perform that action at this time.
0 commit comments