Skip to content

Commit 209beb1

Browse files
committed
fix provided dependencies in web module pom
1 parent 908e63e commit 209beb1

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

web/build.gradle

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,18 @@ projectPomName = project.msftAppInsights + " Java SDK Web Module"
7575
projectPomDescription = "This is the web module of " + project.msftAppInsightsJavaSdk
7676

7777
whenPomConfigured = { p ->
78-
p.dependencies = []
78+
p.dependencies = project.configurations.compileOnly.allDependencies
79+
.findAll { it.group != 'com.microsoft.azure' }
80+
.collect {
81+
def d = p.dependencies[0].class.newInstance() // related to https://issues.gradle.org/browse/GRADLE-1497
82+
d.artifactId = it.name
83+
d.groupId = it.group
84+
d.version = it.version
85+
d.scope = 'provided'
86+
d.type = null
87+
if (it.name == 'xwork' || it.name == 'spring-webmvc') d.optional = 'true'
88+
d
89+
}
7990
}
8091

8192
// endregion Publishing properties

0 commit comments

Comments
 (0)