|
16 | 16 | <version>2.10.4-SNAPSHOT</version><!-- {x-version-update:google-cloud-bigtable:current} -->
|
17 | 17 | <description>Experimental project to shade OpenCensus dependencies.</description>
|
18 | 18 |
|
| 19 | + <properties> |
| 20 | + <cloud.monitoring.version>3.3.6</cloud.monitoring.version> |
| 21 | + </properties> |
| 22 | + |
19 | 23 | <dependencyManagement>
|
20 | 24 | <dependencies>
|
21 | 25 | <dependency>
|
|
25 | 29 | <type>pom</type>
|
26 | 30 | <scope>import</scope>
|
27 | 31 | </dependency>
|
| 32 | + <dependency> |
| 33 | + <groupId>com.google.cloud</groupId> |
| 34 | + <artifactId>google-cloud-monitoring-bom</artifactId> |
| 35 | + <version>${cloud.monitoring.version}</version> |
| 36 | + <type>pom</type> |
| 37 | + <scope>import</scope> |
| 38 | + </dependency> |
28 | 39 | </dependencies>
|
29 | 40 | </dependencyManagement>
|
30 | 41 |
|
31 | 42 | <dependencies>
|
| 43 | + <!-- opencensus dependencies --> |
| 44 | + <dependency> |
| 45 | + <groupId>io.opencensus</groupId> |
| 46 | + <artifactId>opencensus-api</artifactId> |
| 47 | + </dependency> |
| 48 | + <dependency> |
| 49 | + <groupId>io.opencensus</groupId> |
| 50 | + <artifactId>opencensus-exporter-stats-stackdriver</artifactId> |
| 51 | + </dependency> |
| 52 | + <dependency> |
| 53 | + <groupId>io.opencensus</groupId> |
| 54 | + <artifactId>opencensus-impl</artifactId> |
| 55 | + <scope>runtime</scope> |
| 56 | + </dependency> |
| 57 | + |
| 58 | + <!-- cloud monitoring dependencies --> |
| 59 | + <dependency> |
| 60 | + <groupId>com.google.cloud</groupId> |
| 61 | + <artifactId>google-cloud-monitoring</artifactId> |
| 62 | + <!-- Excluding http dependencies since they're not used and are causing conflict in google-cloud-bigtable --> |
| 63 | + <exclusions> |
| 64 | + <exclusion> |
| 65 | + <groupId>com.google.http-client</groupId> |
| 66 | + <artifactId>google-http-client-gson</artifactId> |
| 67 | + </exclusion> |
| 68 | + <exclusion> |
| 69 | + <groupId>com.google.http-client</groupId> |
| 70 | + <artifactId>google-http-client</artifactId> |
| 71 | + </exclusion> |
| 72 | + </exclusions> |
| 73 | + </dependency> |
| 74 | + <dependency> |
| 75 | + <groupId>com.google.api.grpc</groupId> |
| 76 | + <artifactId>proto-google-cloud-monitoring-v3</artifactId> |
| 77 | + </dependency> |
| 78 | + <dependency> |
| 79 | + <groupId>com.google.api.grpc</groupId> |
| 80 | + <artifactId>proto-google-common-protos</artifactId> |
| 81 | + </dependency> |
| 82 | + <dependency> |
| 83 | + <groupId>com.google.auth</groupId> |
| 84 | + <artifactId>google-auth-library-credentials</artifactId> |
| 85 | + </dependency> |
32 | 86 | <dependency>
|
33 | 87 | <groupId>com.google.api</groupId>
|
34 | 88 | <artifactId>gax</artifactId>
|
|
48 | 102 | <groupId>com.google.api</groupId>
|
49 | 103 | <artifactId>api-common</artifactId>
|
50 | 104 | </dependency>
|
51 |
| - |
52 | 105 | <dependency>
|
53 |
| - <groupId>io.opencensus</groupId> |
54 |
| - <artifactId>opencensus-api</artifactId> |
| 106 | + <groupId>com.google.api</groupId> |
| 107 | + <artifactId>gax-grpc</artifactId> |
| 108 | + </dependency> |
| 109 | + <dependency> |
| 110 | + <groupId>com.google.protobuf</groupId> |
| 111 | + <artifactId>protobuf-java</artifactId> |
55 | 112 | </dependency>
|
56 | 113 | <dependency>
|
57 | 114 | <groupId>com.google.guava</groupId>
|
58 | 115 | <artifactId>guava</artifactId>
|
59 | 116 | </dependency>
|
| 117 | + <dependency> |
| 118 | + <groupId>org.threeten</groupId> |
| 119 | + <artifactId>threetenbp</artifactId> |
| 120 | + </dependency> |
| 121 | + <dependency> |
| 122 | + <groupId>com.google.code.findbugs</groupId> |
| 123 | + <artifactId>jsr305</artifactId> |
| 124 | + </dependency> |
60 | 125 |
|
| 126 | + <!-- runtime dependency for native image integration test --> |
61 | 127 | <dependency>
|
62 |
| - <groupId>io.opencensus</groupId> |
63 |
| - <artifactId>opencensus-impl</artifactId> |
| 128 | + <groupId>com.google.http-client</groupId> |
| 129 | + <artifactId>google-http-client</artifactId> |
64 | 130 | <scope>runtime</scope>
|
65 | 131 | </dependency>
|
| 132 | + |
| 133 | + <!-- test dependencies --> |
66 | 134 | <dependency>
|
67 | 135 | <groupId>com.google.truth</groupId>
|
68 | 136 | <artifactId>truth</artifactId>
|
|
73 | 141 | <artifactId>junit</artifactId>
|
74 | 142 | <scope>test</scope>
|
75 | 143 | </dependency>
|
| 144 | + <dependency> |
| 145 | + <groupId>org.mockito</groupId> |
| 146 | + <artifactId>mockito-core</artifactId> |
| 147 | + <scope>test</scope> |
| 148 | + </dependency> |
76 | 149 | </dependencies>
|
77 | 150 |
|
78 | 151 | <build>
|
|
111 | 184 | <groupId>org.apache.maven.plugins</groupId>
|
112 | 185 | <artifactId>maven-dependency-plugin</artifactId>
|
113 | 186 | <version>3.3.0</version>
|
| 187 | + <!-- Ignore opencensus-exporter-metrics-util and opencensus-exporter-stats-stackdriver from --> |
| 188 | + <!-- dependency analyze. opencensus-exporter-metrics-util is a transitive dependency from --> |
| 189 | + <!-- opencensus-exporter-stats-stackdriver but it's not defined in java-shared-dependencies. --> |
| 190 | + <!-- To make the opencensus version consistent, only include opencensus-exporter-stats-stackdriver --> |
| 191 | + <!-- until opencensus-exporter-metrics-util is added to java-shared-dependencies. --> |
| 192 | + <configuration> |
| 193 | + <ignoredDependencies> |
| 194 | + <ignoredDependency>io.opencensus:opencensus-exporter-metrics-util:*</ignoredDependency> |
| 195 | + <ignoredDependency>io.opencensus:opencensus-exporter-stats-stackdriver:*</ignoredDependency> |
| 196 | + </ignoredDependencies> |
| 197 | + </configuration> |
114 | 198 | </plugin>
|
115 | 199 | <plugin>
|
116 | 200 | <groupId>org.codehaus.mojo</groupId>
|
|
121 | 205 | </excludes>
|
122 | 206 | </configuration>
|
123 | 207 | </plugin>
|
| 208 | + <plugin> |
| 209 | + <groupId>org.apache.maven.plugins</groupId> |
| 210 | + <artifactId>maven-enforcer-plugin</artifactId> |
| 211 | + <executions> |
| 212 | + <execution> |
| 213 | + <id>enforce-version-consistency</id> |
| 214 | + <goals> |
| 215 | + <goal>enforce</goal> |
| 216 | + </goals> |
| 217 | + <configuration> |
| 218 | + <rules> |
| 219 | + <bannedDependencies> |
| 220 | + <includes> |
| 221 | + <!-- gax-grpc transitvely brings in opencensus-proto, which the latest version is 0.2.0--> |
| 222 | + <!-- Only allow 0.2.0 for opencensus-proto and then the latest version (currently 0.31.1) for all other modules--> |
| 223 | + <!-- this will need to be updated whenever the opencensus version gets updated --> |
| 224 | + <dependency>io.opencensus:*:[0.31.1]</dependency> |
| 225 | + <dependency>io.opencensus:opencensus-proto:[0.2.0]</dependency> |
| 226 | + </includes> |
| 227 | + </bannedDependencies> |
| 228 | + </rules> |
| 229 | + </configuration> |
| 230 | + </execution> |
| 231 | + </executions> |
| 232 | + </plugin> |
124 | 233 | </plugins>
|
125 | 234 | </build>
|
126 | 235 | </project>
|
0 commit comments