Comments (2)
Hi @dvandegrift, thanks for writing in.
I don't think this is an issue on this SDK side. When you try mvn dependency:tree
command with the following pom.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.mycompany.app</groupId>
<artifactId>my-app</artifactId>
<version>1.0-SNAPSHOT</version>
<name>my-app</name>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>com.slack.api</groupId>
<artifactId>slack-api-client</artifactId>
<version>1.39.0</version>
</dependency>
</dependencies>
</project>
the output shows the correct okhttp version as below:
$ mvn dependency:tree
[INFO] Scanning for projects...
[INFO]
[INFO] ----------------------< com.mycompany.app:my-app >----------------------
[INFO] Building my-app 1.0-SNAPSHOT
[INFO] from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- dependency:2.8:tree (default-cli) @ my-app ---
[INFO] com.mycompany.app:my-app:jar:1.0-SNAPSHOT
[INFO] \- com.slack.api:slack-api-client:jar:1.39.0:compile
[INFO] +- com.slack.api:slack-api-model:jar:1.39.0:compile
[INFO] +- com.squareup.okhttp3:okhttp:jar:4.12.0:compile
[INFO] | +- com.squareup.okio:okio:jar:3.6.0:compile
[INFO] | | \- com.squareup.okio:okio-jvm:jar:3.6.0:compile
[INFO] | | \- org.jetbrains.kotlin:kotlin-stdlib-common:jar:1.9.10:compile
[INFO] | \- org.jetbrains.kotlin:kotlin-stdlib-jdk8:jar:1.8.21:compile
[INFO] | +- org.jetbrains.kotlin:kotlin-stdlib:jar:1.8.21:compile
[INFO] | | \- org.jetbrains:annotations:jar:13.0:compile
[INFO] | \- org.jetbrains.kotlin:kotlin-stdlib-jdk7:jar:1.8.21:compile
[INFO] +- com.google.code.gson:gson:jar:2.10.1:compile
[INFO] \- org.slf4j:slf4j-api:jar:1.7.36:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
The possible cause of your situation is due to maven settings for your project. From my past experience, Sping Boot and other major web framework libraries tend to enforce a specific version of okhttp over the one our SDK relies on. There is no workaround for our side. To deal with this situation, you can explicitly have the okhttp dependency in your pom.xml to overwrite the version.
I hope this helps. Since this is not this SDK's issue, plus there is nothing else I can share for you, let me close this issue now. That being said, whenever you have follow-up questions, please feel free to write in!
from java-slack-sdk.
Thanks @seratch. I can confirm that the issue was indeed caused by importing Spring Boot 2.7.18. After upgrading to Spring Boot 3.2.4, the transitive dependencies were as expected.
from java-slack-sdk.
Related Issues (20)
- Slack mobile shows "Unable to show preview" despite fallback text() being present HOT 3
- AdminInviteRequestsListRequest missing an optional argument HOT 3
- How to know when the end of a cursor-iteration was reached? HOT 3
- Slack fails to stop metrics and OkHTTPClient threads when calling *.close() HOT 3
- `auth.test` in `MultiTeamsAuthorization` HOT 10
- Add documentation for using the `SlackSignature` verifier from `app_backend` with specific Java requirements HOT 2
- MarkdownTextObject as text in OptionObject entries for StaticSelectElements HOT 2
- Question: Is it possible to add ViewState to blockSuggestion events? HOT 5
- Request for Exact Size Limit of Timestamp (ts) Field in Java Slack SDK HOT 2
- Use the slack huddle api HOT 1
- How to un-register/re-register a message listener HOT 4
- Slack couldn't verify messages with *(bold) w/ Spring Boot HOT 1
- Message sent after file upload comes earlier than the file appears in the channel HOT 4
- ResponseMetadata missing in AdminInviteRequestsResponse HOT 2
- FileUploadV2 is breaking two useful features available in pervious version HOT 9
- entity.message is missing in Audit Logs API response HOT 1
- files.upload v2 method does not upload multiple files with full metadata HOT 5
- Slack API that allows me to call to install an app on a specific channel and remove an app on a specific channel HOT 7
- How do I respond to the url_verification event? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from java-slack-sdk.