Elffuss BraidHub

kikocis/java-driver public

Merge branch '2.0' into 2.1
Changeset355ed2b1c9749923702732694c2b80374afce2f227f2be06bf1ff5ba074f1b66
Authorolim7t <omichallat+github@gmail.com> · 2015-03-03 10:04 -08:00
Committerolim7t <omichallat+github@gmail.com> · 2015-03-03 10:04 -08:00
Parentsb1aae6a0cc92, 78fed81be230

Browse the files at this changeset

4 files changed

modified driver-core/CHANGELOG.rst +1 −0
@@ -10,6 +10,7 @@
1010 - [improvement] Add connection heartbeat (JAVA-533)
1111 - [improvement] Reduce level of logs on missing rpc_address (JAVA-568)
1212 - [improvement] Expose node token and range information (JAVA-312)
13+- [bug] Fix guava dependency when using OSGI (JAVA-620)
1314 - [bug] Prevent race between cancellation and query completion (JAVA-614)
1415 - [bug] Prevent cancel and timeout from cancelling unrelated ResponseHandler if
1516 streamId was already released and reused (JAVA-632).
modified driver-core/pom.xml +65 −41
@@ -113,6 +113,14 @@
113113 </resource>
114114 </resources>
115115 <plugins>
116+ <plugin>
117+ <artifactId>maven-compiler-plugin</artifactId>
118+ <configuration>
119+ <compilerArgument>-Xlint:all</compilerArgument>
120+ <showWarnings>true</showWarnings>
121+ <showDeprecation>true</showDeprecation>
122+ </configuration>
123+ </plugin>
116124 <plugin>
117125 <groupId>org.apache.maven.plugins</groupId>
118126 <artifactId>maven-jar-plugin</artifactId>
@@ -131,20 +139,16 @@
131139 <artifactId>maven-bundle-plugin</artifactId>
132140 <extensions>true</extensions>
133141 <version>2.4.0</version>
134- <executions>
135- <execution>
136- <id>bundle-manifest</id>
137- <phase>process-classes</phase>
138- <goals>
139- <goal>manifest</goal>
140- </goals>
141- </execution>
142- </executions>
142+ <!--
143+ Default configuration, used by the `bundle` goal that is implicitly bound to the `package` phase
144+ (because the project uses the `bundle` packaging)
145+ -->
143146 <configuration>
144147 <instructions>
145148 <Bundle-SymbolicName>com.datastax.driver.core</Bundle-SymbolicName>
146149 <Bundle-Version>${project.version}</Bundle-Version>
147150 <_include>-osgi.bnd</_include>
151+ <Import-Package><![CDATA[com.google.common*;version="[14.0,19)",*]]></Import-Package>
148152 </instructions>
149153 <supportedProjectTypes>
150154 <supportedProjectType>jar</supportedProjectType>
@@ -152,9 +156,60 @@
152156 <supportedProjectType>pom</supportedProjectType>
153157 </supportedProjectTypes>
154158 </configuration>
159+ <executions>
160+ <!-- Alternate execution to generate the shaded JAR's manifest -->
161+ <execution>
162+ <id>bundle-manifest-shaded</id>
163+ <phase>prepare-package</phase>
164+ <goals>
165+ <goal>manifest</goal>
166+ </goals>
167+ <configuration>
168+ <manifestLocation>${project.build.directory}/META-INF-shaded</manifestLocation>
169+ <instructions>
170+ <Import-Package><![CDATA[com.google.common.*;version="[14.0,19)",!org.jboss.netty.*,*]]></Import-Package>
171+ <Private-Package>com.datastax.shaded.*</Private-Package>
172+ </instructions>
173+ </configuration>
174+ </execution>
175+ </executions>
176+ </plugin>
177+ <plugin>
178+ <artifactId>maven-shade-plugin</artifactId>
179+ <version>2.3</version>
180+ <executions>
181+ <execution>
182+ <phase>package</phase>
183+ <goals><goal>shade</goal></goals>
184+ <configuration>
185+ <shadedArtifactAttached>true</shadedArtifactAttached>
186+ <artifactSet>
187+ <includes>
188+ <include>io.netty:netty</include>
189+ </includes>
190+ </artifactSet>
191+ <relocations>
192+ <relocation>
193+ <pattern>org.jboss.netty</pattern>
194+ <shadedPattern>com.datastax.shaded.netty</shadedPattern>
195+ </relocation>
196+ </relocations>
197+ <transformers>
198+ <transformer implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer">
199+ <resource>META-INF/MANIFEST.MF</resource>
200+ </transformer>
201+ <!-- Pick up the alternate manifest that was generated by the alternate execution of the bundle plugin -->
202+ <transformer implementation="org.apache.maven.plugins.shade.resource.IncludeResourceTransformer">
203+ <resource>META-INF/MANIFEST.MF</resource>
204+ <file>${project.build.directory}/META-INF-shaded/MANIFEST.MF</file>
205+ </transformer>
206+ </transformers>
207+ </configuration>
208+ </execution>
209+ </executions>
155210 </plugin>
156211 </plugins>
157-
212+
158213 <pluginManagement>
159214 <plugins>
160215 <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
@@ -213,37 +268,6 @@
213268 <!--<forkMode>never</forkMode>-->
214269 </configuration>
215270 </plugin>
216- <plugin>
217- <artifactId>maven-compiler-plugin</artifactId>
218- <configuration>
219- <compilerArgument>-Xlint:all</compilerArgument>
220- <showWarnings>true</showWarnings>
221- <showDeprecation>true</showDeprecation>
222- </configuration>
223- </plugin>
224- <plugin>
225- <artifactId>maven-shade-plugin</artifactId>
226- <version>2.3</version>
227- <executions>
228- <execution>
229- <phase>package</phase>
230- <goals><goal>shade</goal></goals>
231- <configuration>
232- <artifactSet>
233- <includes>
234- <include>io.netty:netty</include>
235- </includes>
236- </artifactSet>
237- <relocations>
238- <relocation>
239- <pattern>org.jboss.netty</pattern>
240- <shadedPattern>com.datastax.shaded.netty</shadedPattern>
241- </relocation>
242- </relocations>
243- </configuration>
244- </execution>
245- </executions>
246- </plugin>
247271 </plugins>
248272 </build>
249273 </profile>
modified driver-dse/pom.xml +0 −9
@@ -41,15 +41,6 @@
4141 <artifactId>maven-bundle-plugin</artifactId>
4242 <extensions>true</extensions>
4343 <version>2.4.0</version>
44- <executions>
45- <execution>
46- <id>bundle-manifest</id>
47- <phase>process-classes</phase>
48- <goals>
49- <goal>manifest</goal>
50- </goals>
51- </execution>
52- </executions>
5344 <configuration>
5445 <instructions>
5546 <Bundle-SymbolicName>com.datastax.driver.dse</Bundle-SymbolicName>
modified src/main/config/ide/intellij-code-style.jar +0 −0

Binary content is not shown. View the file.