Skip to content

Commit 6b4ebea

Browse files
committed
JAVA-2470: Fix Session.OSS_DRIVER_COORDINATES for shaded JAR
1 parent 3cb761e commit 6b4ebea

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

changelog/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
### 4.2.1
66

7+
- [bug] JAVA-2470: Fix Session.OSS_DRIVER_COORDINATES for shaded JAR
78
- [bug] JAVA-2454: Handle "empty" CQL type while parsing schema
89
- [improvement] JAVA-2455: Improve logging of schema refresh errors
910
- [documentation] JAVA-2429: Document expected types on DefaultDriverOption

core/src/main/java/com/datastax/oss/driver/internal/core/DefaultMavenCoordinates.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public static DefaultMavenCoordinates buildFromResource(URL resource) {
5151
String artifactId = props.getProperty("driver.artifactId");
5252
String version = props.getProperty("driver.version");
5353
if (ByteBuf.class.getPackage().getName().contains("com.datastax.oss.driver.shaded")) {
54-
version += "-shaded";
54+
artifactId += "-shaded";
5555
}
5656
return new DefaultMavenCoordinates(name, groupId, artifactId, Version.parse(version));
5757
} catch (IOException e) {

0 commit comments

Comments
 (0)