Skip to content

Commit

Permalink
remove dependencies from web/core poms
Browse files Browse the repository at this point in the history
  • Loading branch information
littleaj committed Jul 9, 2019
1 parent f7e307e commit 1924fc0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
9 changes: 1 addition & 8 deletions core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -163,14 +163,7 @@ projectPomName = project.msftAppInsights + " Java SDK Core"
projectPomDescription = "This is the core module of " + project.msftAppInsightsJavaSdk

whenPomConfigured = { p ->
def agentArtifactId = project(":agent").jar.baseName
def loggerArtifactId = project(":ApplicationInsightsInternalLogger").jar.baseName
p.dependencies = p.dependencies.findAll { dep ->
dep.scope == "test" || dep.artifactId != agentArtifactId && dep.artifactId != loggerArtifactId &&
!(dep.groupId in ['org.apache.http', 'eu.infomas', 'org.apache.commons', 'commons-io',
'com.google.code.gson', 'org.apache.httpcomponents',
'io.grpc', 'com.google.protobuf'])
}
p.dependencies = []
}

// endregion Publishing properties
8 changes: 1 addition & 7 deletions web/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,7 @@ projectPomName = project.msftAppInsights + " Java SDK Web Module"
projectPomDescription = "This is the web module of " + project.msftAppInsightsJavaSdk

whenPomConfigured = { p ->
def agentArtifactId = project(":agent").jar.baseName
def loggerArtifactId = project(":ApplicationInsightsInternalLogger").jar.baseName
p.dependencies = p.dependencies.findAll { dep ->
dep.scope == "test" || dep.artifactId != agentArtifactId && dep.artifactId != loggerArtifactId &&
!(dep.groupId in ['org.apache.http', 'org.apache.commons', 'commons-io',
'com.google.guava', 'com.google.code.gson', 'org.apache.httpcomponents'])
}
p.dependencies = []
}

// endregion Publishing properties

0 comments on commit 1924fc0

Please sign in to comment.