Skip to content

Commit e9119f2

Browse files
authored
Merge pull request #1200 from microsoft/littleaj/fix-pom
fix classifier added by 'shadow' configuration
2 parents d1f387f + a05749b commit e9119f2

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

azure-application-insights-spring-boot-starter/build.gradle

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,14 @@ whenPomConfigured = { p ->
9595
dep.artifactId != agentArtifactId && dep.artifactId != loggerArtifactId &&
9696
!(dep.groupId in ['org.apache.http', 'eu.infomas', 'org.apache.commons', 'commons-io',
9797
'com.google.guava', 'com.google.code.gson', 'org.apache.httpcomponents',
98-
'io.grpc', 'com.google.protobuf'])}
98+
'io.grpc', 'com.google.protobuf'])
99+
}
100+
.collect { dep ->
101+
if (dep.artifactId == 'applicationinsights-web') {
102+
dep.classifier = null
103+
}
104+
dep
105+
}
99106
p.dependencies += project.configurations.provided.allDependencies
100107
.findAll { it.group != 'com.microsoft.azure' }
101108
.collect {

0 commit comments

Comments
 (0)