Skip to content

Commit

Permalink
fix provided dependencies in web module pom
Browse files Browse the repository at this point in the history
  • Loading branch information
littleaj committed Jul 9, 2019
1 parent 908e63e commit 209beb1
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion web/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,18 @@ projectPomName = project.msftAppInsights + " Java SDK Web Module"
projectPomDescription = "This is the web module of " + project.msftAppInsightsJavaSdk

whenPomConfigured = { p ->
p.dependencies = []
p.dependencies = project.configurations.compileOnly.allDependencies
.findAll { it.group != 'com.microsoft.azure' }
.collect {
def d = p.dependencies[0].class.newInstance() // related to https://issues.gradle.org/browse/GRADLE-1497
d.artifactId = it.name
d.groupId = it.group
d.version = it.version
d.scope = 'provided'
d.type = null
if (it.name == 'xwork' || it.name == 'spring-webmvc') d.optional = 'true'
d
}
}

// endregion Publishing properties

0 comments on commit 209beb1

Please sign in to comment.