dependencies {
// Other dependencies...
implementation 'com.slack.api:slack-java-api:2.10.0'
}
요로코롬 2.10.0 을 납치해주면 될 것 같지만 작동하지 않는다.
Gradle
Do you prefer using Gradle? Let’s try installing the library with Gradle. The steps are quite similar to Maven, but there are some differences.
build.gradle
Place build.gradle in the root directory of your Java project. We don’t have any requirements for Gradle versions.
plugins {
id("application")
}
repositories {
mavenCentral()
}
dependencies {
implementation("com.slack.api:slack-api-client:1.30.0")
}
application {
mainClassName = "Example"
}
As with the Maven section, let’s create a class named Example with the main method. Then, run it from your IDE or hit gradle run on your terminal. You’ll see the same stdout.
In summary, the things you’ve done here are:
- ✅ JDK 8 or higher installed (if not, run brew install openjdk@11 for macOS / visit OpenJDK website for others)
- ✅ Gradle installed (if not, run brew install gradle for macOS / visit their website for others)
- ✅ build.gradle having slack-api-client as a dependency
- ✅ src/main/java/Example.java with the main method
Gradle for Kotlin
위에처럼 1.30.0 에 대한 부분을 build.gradle 에 의존성 결과로 적용해준 이후에 import 할 수 있었다.
특히 코드에서 몇가지 없는 부분들이 있는데, 버전이 올라감에 따라서 .get method 등이 deprecated 되었다.
https://slack.dev/java-slack-sdk/guides/web-api-client-setup
'Java > Spring Boot JPA' 카테고리의 다른 글
[Trouble Shooting] Shop Credential released issue (0) | 2023.08.05 |
---|---|
[Trouble Shooting] AopInvocationException Handling (0) | 2023.08.03 |
HOw to resovle Cannot resolve table 'user_group' (0) | 2023.07.19 |
[예약어 조지기] 미리 예약된 예약어는 issue 를 발생 시킨다. (0) | 2023.07.18 |
[Slack] Integration Slack API (0) | 2023.07.14 |