-
Notifications
You must be signed in to change notification settings - Fork 582
Class conflict with okio #1211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Ok, when I use <dependency>
<groupId>com.clickhouse</groupId>
<artifactId>clickhouse-jdbc</artifactId>
<version>0.4.0</version>
<!-- use uber jar with all dependencies included, change classifier to http for smaller jar -->
<classifier>all</classifier>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency> It works well, But isn't the problem #1134 still there? |
Thanks @IcebergXTY. You may exclude dependencies you don't need from clickhouse-jdbc. Shaded jar makes it simpler, if you picked the right classifier. If you don't need gRPC, which is still experimental by the way, you may change the classifier from As to issue 1134, it seems you want a shaded jar with source? Let's reopen the issue and I'll fix that. |
@zhicwu Yeah, I want to use <dependency>
<groupId>com.clickhouse</groupId>
<artifactId>clickhouse-jdbc</artifactId>
<version>0.4.0</version>
</dependency> But it seems if I'm not use shaded jar, the |
I see. Let me explain:
<dependency>
<groupId>com.clickhouse</groupId>
<artifactId>clickhouse-jdbc</artifactId>
<version>0.4.0</version>
<exclusions>
<exclusion>
<groupId>com.clickhouse</groupId>
<artifactId>io.grpc</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.clickhouse</groupId>
<artifactId>clickhouse-jdbc</artifactId>
<version>0.4.1</version>
<classifier>http</classifier>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency> |
I have okhttp 4.10.0 and okio 3.0.0 in my project and after I upgrade to 0.4.0 it raises an error like this
I found in version 0.4.0, there is a new dependency
io.grpc
and there is aokio.Options
java class in this dependency.On the other hand, there is also a
okio.Options
inokio
, but it's writed withkotlin
and this is the main culprit in this problem.The text was updated successfully, but these errors were encountered: