kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | 355ed2b1c9749923702732694c2b80374afce2f227f2be06bf1ff5ba074f1b66 |
|---|---|
| Author | olim7t <omichallat+github@gmail.com> · 2015-03-03 10:04 -08:00 |
| Committer | olim7t <omichallat+github@gmail.com> · 2015-03-03 10:04 -08:00 |
| Parents | b1aae6a0cc92, 78fed81be230 |
4 files changed
modified driver-core/CHANGELOG.rst +1 −0
| @@ -10,6 +10,7 @@ | ||
| 10 | 10 | - [improvement] Add connection heartbeat (JAVA-533) |
| 11 | 11 | - [improvement] Reduce level of logs on missing rpc_address (JAVA-568) |
| 12 | 12 | - [improvement] Expose node token and range information (JAVA-312) |
| 13 | +- [bug] Fix guava dependency when using OSGI (JAVA-620) | |
| 13 | 14 | - [bug] Prevent race between cancellation and query completion (JAVA-614) |
| 14 | 15 | - [bug] Prevent cancel and timeout from cancelling unrelated ResponseHandler if |
| 15 | 16 | streamId was already released and reused (JAVA-632). |
modified driver-core/pom.xml +65 −41
| @@ -113,6 +113,14 @@ | ||
| 113 | 113 | </resource> |
| 114 | 114 | </resources> |
| 115 | 115 | <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> | |
| 116 | 124 | <plugin> |
| 117 | 125 | <groupId>org.apache.maven.plugins</groupId> |
| 118 | 126 | <artifactId>maven-jar-plugin</artifactId> |
| @@ -131,20 +139,16 @@ | ||
| 131 | 139 | <artifactId>maven-bundle-plugin</artifactId> |
| 132 | 140 | <extensions>true</extensions> |
| 133 | 141 | <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 | + --> | |
| 143 | 146 | <configuration> |
| 144 | 147 | <instructions> |
| 145 | 148 | <Bundle-SymbolicName>com.datastax.driver.core</Bundle-SymbolicName> |
| 146 | 149 | <Bundle-Version>${project.version}</Bundle-Version> |
| 147 | 150 | <_include>-osgi.bnd</_include> |
| 151 | + <Import-Package><![CDATA[com.google.common*;version="[14.0,19)",*]]></Import-Package> | |
| 148 | 152 | </instructions> |
| 149 | 153 | <supportedProjectTypes> |
| 150 | 154 | <supportedProjectType>jar</supportedProjectType> |
| @@ -152,9 +156,60 @@ | ||
| 152 | 156 | <supportedProjectType>pom</supportedProjectType> |
| 153 | 157 | </supportedProjectTypes> |
| 154 | 158 | </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> | |
| 155 | 210 | </plugin> |
| 156 | 211 | </plugins> |
| 157 | - | |
| 212 | + | |
| 158 | 213 | <pluginManagement> |
| 159 | 214 | <plugins> |
| 160 | 215 | <!--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 @@ | ||
| 213 | 268 | <!--<forkMode>never</forkMode>--> |
| 214 | 269 | </configuration> |
| 215 | 270 | </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> | |
| 247 | 271 | </plugins> |
| 248 | 272 | </build> |
| 249 | 273 | </profile> |
modified driver-dse/pom.xml +0 −9
| @@ -41,15 +41,6 @@ | ||
| 41 | 41 | <artifactId>maven-bundle-plugin</artifactId> |
| 42 | 42 | <extensions>true</extensions> |
| 43 | 43 | <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> | |
| 53 | 44 | <configuration> |
| 54 | 45 | <instructions> |
| 55 | 46 | <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.