@@ -34,53 +34,68 @@ limitations under the License.
34
34
Bigtable.
35
35
</description >
36
36
37
- <properties >
38
- <!-- define a property that can be ignored by renovate -->
39
- <hbase1-hadoop-slf4j .version>1.6.1</hbase1-hadoop-slf4j .version>
40
- </properties >
41
-
42
37
<build >
38
+ <pluginManagement >
39
+ <plugins >
40
+ <!-- disable google-cloud-shared-config enforcement checks because
41
+ hbase-client's dependency subtree doesn't follow the same rules and is
42
+ unable to be fixed here -->
43
+ <plugin >
44
+ <groupId >org.apache.maven.plugins</groupId >
45
+ <artifactId >maven-enforcer-plugin</artifactId >
46
+ <executions >
47
+ <execution >
48
+ <id >enforce</id >
49
+ <!-- requireUpperBoundDeps, banDuplicateClasses -->
50
+ <configuration >
51
+ <skip >true</skip >
52
+ </configuration >
53
+ </execution >
54
+
55
+ <!-- This must be a drop in replacement for hbase-client, so can't
56
+ manage hbase's deps -->
57
+ <execution >
58
+ <id >enforce-banned-deps</id >
59
+ <goals >
60
+ <goal >enforce</goal >
61
+ </goals >
62
+ <configuration >
63
+ <skip >true</skip >
64
+ </configuration >
65
+ </execution >
66
+ <execution >
67
+ <id >enforce-version-consistency-slf4j</id >
68
+ <configuration >
69
+ <skip >true</skip >
70
+ </configuration >
71
+ </execution >
72
+ </executions >
73
+ </plugin >
74
+ </plugins >
75
+ </pluginManagement >
76
+
43
77
<plugins >
44
78
<plugin >
45
- <groupId >org.apache.maven.plugins</groupId >
46
- <artifactId >maven-enforcer-plugin</artifactId >
79
+ <groupId >com.google.cloud.bigtable.test</groupId >
80
+ <artifactId >bigtable-build-helper</artifactId >
81
+ <version >2.12.1-SNAPSHOT</version > <!-- {x-version-update:bigtable-client-parent:current} -->
47
82
<executions >
48
- <!-- disable google-cloud-shared-config enforcement checks because
49
- hbase-client's dependency subtree doesn't follow the same rules and is
50
- unable to be fixed here -->
51
- <execution >
52
- <id >enforce</id >
53
- <configuration >
54
- <skip >true</skip >
55
- </configuration >
56
- </execution >
57
- <!-- This must be a drop in replacement for hbase-client, so can't
58
- manage hbase's deps -->
59
- <execution >
60
- <id >enforce-banned-deps</id >
61
- <goals >
62
- <goal >enforce</goal >
63
- </goals >
64
- <configuration >
65
- <skip >true</skip >
66
- </configuration >
67
- </execution >
68
83
<execution >
69
- <id >enforce-java</id >
84
+ <id >verify-mirror-deps-hbase</id >
85
+ <phase >verify</phase >
70
86
<goals >
71
- <goal >enforce </goal >
87
+ <goal >verify-mirror-deps </goal >
72
88
</goals >
73
89
<configuration >
74
- <rules >
75
- <requireJavaVersion >
76
- <version >[1.8,)</version >
77
- </requireJavaVersion >
78
- </rules >
90
+ <targetDependencies >
91
+ <targetDependency >org.apache.hbase:hbase-server</targetDependency >
92
+ </targetDependencies >
79
93
</configuration >
80
94
</execution >
81
95
</executions >
82
96
</plugin >
83
97
<plugin >
98
+ <groupId >org.apache.maven.plugins</groupId >
84
99
<artifactId >maven-assembly-plugin</artifactId >
85
100
<version >3.3.0</version >
86
101
<executions >
@@ -109,55 +124,69 @@ limitations under the License.
109
124
</goals >
110
125
<configuration >
111
126
<shadedArtifactAttached >false</shadedArtifactAttached >
127
+ <transformers >
128
+ <transformer implementation =" org.apache.maven.plugins.shade.resource.ApacheLicenseResourceTransformer" />
129
+ <transformer implementation =" org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer" />
130
+ <transformer implementation =" org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
131
+ </transformers >
112
132
</configuration >
113
133
</execution >
114
134
</executions >
115
135
</plugin >
116
136
</plugins >
117
137
</build >
138
+
118
139
<dependencies >
119
- <!-- bigtable libs for org.apache.hadoop.hbase -->
140
+ <dependency >
141
+ <groupId >org.apache.hbase</groupId >
142
+ <artifactId >hbase-server</artifactId >
143
+ <version >${hbase1.version} </version >
144
+ <!-- The library is running on the HBase region server,-->
145
+ <!-- use the HBase server from the HBase environment-->
146
+ <scope >provided</scope >
147
+ </dependency >
148
+
120
149
<dependency >
121
150
<groupId >com.google.cloud.bigtable</groupId >
122
151
<artifactId >bigtable-hbase-replication-core</artifactId >
123
152
<version >1.11.1-SNAPSHOT</version > <!-- {x-version-update:bigtable-hbase-replication:current} -->
124
153
<exclusions >
125
- <!-- HBase dependencies come from hbase-server below. Skip them here.-->
126
154
<exclusion >
127
155
<groupId >org.apache.hbase</groupId >
128
156
<artifactId >hbase-client</artifactId >
129
157
</exclusion >
158
+ <exclusion >
159
+ <groupId >com.google.cloud.bigtable</groupId >
160
+ <artifactId >bigtable-hbase-1.x-hadoop</artifactId >
161
+ </exclusion >
130
162
</exclusions >
131
163
</dependency >
132
164
<dependency >
133
- <groupId >org.apache.hbase</groupId >
134
- <artifactId >hbase-server</artifactId >
135
- <version >${hbase1.version} </version >
136
- <!-- The library is running on the HBase region server,-->
137
- <!-- use the HBase server from the HBase environment-->
138
- <scope >provided</scope >
139
- </dependency >
140
- <!-- Versions conflict within HBase, enforce same versions but let
141
- them come from hbase-server to avoid version conflicts-->
142
- <dependency >
143
- <groupId >org.slf4j</groupId >
144
- <artifactId >slf4j-api</artifactId >
145
- <version >${hbase1-hadoop-slf4j.version} </version >
146
- <scope >provided</scope >
147
- </dependency >
148
- <dependency >
149
- <groupId >org.slf4j</groupId >
150
- <artifactId >slf4j-log4j12</artifactId >
151
- <version >${hbase1-hadoop-slf4j.version} </version >
152
- <scope >provided</scope >
165
+ <groupId >com.google.cloud.bigtable</groupId >
166
+ <artifactId >bigtable-hbase-1.x-hadoop</artifactId >
167
+ <version >2.12.1-SNAPSHOT</version > <!-- {x-version-update:bigtable-client-parent:current} -->
168
+ <exclusions >
169
+ <!-- HBase dependencies come from hbase-server below. Skip them here.-->
170
+ <exclusion >
171
+ <groupId >org.apache.hbase</groupId >
172
+ <artifactId >hbase-client</artifactId >
173
+ </exclusion >
174
+ </exclusions >
153
175
</dependency >
154
176
155
- <!-- test dependencies -->
177
+ <!-- Test dependencies-->
156
178
<dependency >
157
179
<groupId >org.apache.hbase</groupId >
158
180
<artifactId >hbase-testing-util</artifactId >
159
181
<version >${hbase1.version} </version >
160
182
<scope >test</scope >
183
+ <exclusions >
184
+ <exclusion >
185
+ <!-- Prevent test util from overriding the version from hbase-server -->
186
+ <groupId >org.slf4j</groupId >
187
+ <artifactId >slf4j-log4j12</artifactId >
188
+ </exclusion >
189
+ </exclusions >
161
190
</dependency >
162
191
<dependency >
163
192
<groupId >com.google.cloud</groupId >
0 commit comments