Skip to content

Commit

Permalink
Fix grpc dependencies (#761)
Browse files Browse the repository at this point in the history
* exclude protobuf dependencies from pom

* fix the test dependencies

* fixed test scope dependencies
  • Loading branch information
littleaj authored Oct 18, 2018
1 parent 27bd354 commit 754c76f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,5 +111,5 @@ projectPomDescription = "This is the Spring Boot starter of " + project.msftAppI

whenPomConfigured = { p ->
def agentArtifactId = project(":agent").jar.baseName
p.dependencies = p.dependencies.findAll { dep -> dep.artifactId != agentArtifactId }
p.dependencies = p.dependencies.findAll { dep -> dep.scope == "test" || dep.artifactId != agentArtifactId }
}
5 changes: 3 additions & 2 deletions core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,10 @@ projectPomDescription = "This is the core module of " + project.msftAppInsightsJ
whenPomConfigured = { p ->
def agentArtifactId = project(":agent").jar.baseName
p.dependencies = p.dependencies.findAll { dep ->
dep.artifactId != agentArtifactId &&
dep.scope == "test" || dep.artifactId != agentArtifactId &&
!(dep.groupId in ['org.apache.http', 'eu.infomas', 'org.apache.commons', 'commons-io',
'com.google.guava', 'com.google.code.gson', 'org.apache.httpcomponents'])
'com.google.guava', 'com.google.code.gson', 'org.apache.httpcomponents',
'io.grpc', 'com.google.protobuf'])
}
}

Expand Down
2 changes: 1 addition & 1 deletion logging/logging.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ findbugs.sourceSets = [sourceSets.main]
// region Publishing properties

whenPomConfigured = { p ->
p.dependencies = p.dependencies.findAll { dep -> dep.artifactId != "junit" && dep.artifactId != "mockito-all" }
p.dependencies = p.dependencies.findAll { dep -> dep.scope == "test" || dep.artifactId != "junit" && dep.artifactId != "mockito-all" }
}

// endregion Publishing properties
Expand Down
2 changes: 1 addition & 1 deletion web/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ projectPomDescription = "This is the web module of " + project.msftAppInsightsJa
whenPomConfigured = { p ->
def agentArtifactId = project(":agent").jar.baseName
p.dependencies = p.dependencies.findAll { dep ->
dep.artifactId != agentArtifactId &&
dep.scope == "test" || dep.artifactId != agentArtifactId &&
!(dep.groupId in ['org.apache.http', 'org.apache.commons', 'commons-io',
'org.apache.httpcomponents'])
}
Expand Down

0 comments on commit 754c76f

Please sign in to comment.