diff --git a/.scalafmt.conf b/.scalafmt.conf
new file mode 100644
index 0000000..834f2d2
--- /dev/null
+++ b/.scalafmt.conf
@@ -0,0 +1 @@
+version = 2.7.5
\ No newline at end of file
diff --git a/README.md b/README.md
index 83027e6..bebcedf 100644
--- a/README.md
+++ b/README.md
@@ -34,10 +34,10 @@ sources with `mvn package`.
Next upload `target/slackIntegration.zip` to TeamCity `data/plugins/` folder (restart is needed).
Create Slack App:
-* Open [Create classic app](https://api.slack.com/apps?new_classic_app=1) form and fill it
-* Go to **App Home**. Create Bot with **Add Legacy Bot User** button (fill both fields correctly)
-* Go to **OAuth & Permissions**. Add scope **bot** in **Scopes** section. Then click **Install App in Workspace**
-* Now copy **Bot User OAuth Access Token**.
+* Open [Create app](https://api.slack.com/apps) form and fill it
+* Go to **OAuth & Permissions**. Add following scopes in **Scopes** section: `channels:read`, `chat:write`, `chat:write.public`, `im:write`, `users:read`, `users:read.email`. If you plan to change sender name, add also `chat:write.customize` scope.
+* Click **Install App in Workspace**
+* Now copy **Bot User OAuth Token**.
Paste this token into **Administration -> Slack -> OAuth Access Token** field.
@@ -150,11 +150,6 @@ The message is prepended by Emoji ✅, ⛔ or ⚪ for successful, failed and oth
## Troubleshooting
-**Q:** I followed all the instructions, but I get error message `not_allowed_token_type` when I try to save my Bot token into TeamCity!
-
-**A:** This plugin does not yet support the new Slack detailed OAuth scopes. When trying to save or use a token created for a Bot User using the new scopes, the Slack API will return that error message. When creating a new Slack App for this integration, do NOT opt into using the updated/beta scopes. If you have already opted in, you will need to create a new Slack App - there is no way to downgrade at this time. The only supported scope is the classic `bot` scope.
-
-![Beta Slack bot scopes](_doc/slack-beta-bot-scopes.png)
**Q:** I checked the option to send private messages and added the `{mention}` placeholder to the message, but neither the message was send to the slack user nor the name was mentioned in the slack message!
diff --git a/_doc/slack-beta-bot-scopes.png b/_doc/slack-beta-bot-scopes.png
deleted file mode 100644
index a7742be..0000000
Binary files a/_doc/slack-beta-bot-scopes.png and /dev/null differ
diff --git a/build/plugin-assembly.xml b/build/plugin-assembly.xml
index 0b7b1ff..182c065 100644
--- a/build/plugin-assembly.xml
+++ b/build/plugin-assembly.xml
@@ -8,7 +8,7 @@
- /
+
diff --git a/build/pom.xml b/build/pom.xml
index 4252b12..a4463e7 100644
--- a/build/pom.xml
+++ b/build/pom.xml
@@ -10,7 +10,7 @@
pomyyyyMMddHHmmss
- 1.8.1
+ 2.0.0Alex Kvakhttps://github.com/alexkvak
diff --git a/pom.xml b/pom.xml
index 880ea4e..9d8892f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -27,17 +27,14 @@
org.apache.maven.pluginsmaven-compiler-plugin
-
- 1.6
+
+ 1.8net.alchim31.mavenscala-maven-plugin
- 3.2.2
-
- 2.12.1
-
+ 4.4.1scala-compile-first
@@ -67,7 +64,7 @@
org.scalatestscalatest-maven-plugin
- 1.0
+ 2.0.2${project.build.directory}/surefire-reports.
diff --git a/slackIntegration-server/pom.xml b/slackIntegration-server/pom.xml
index e546069..32dcd2e 100644
--- a/slackIntegration-server/pom.xml
+++ b/slackIntegration-server/pom.xml
@@ -9,6 +9,11 @@
slackIntegration-serverjar
+
+
+ UTF-8
+
+
@@ -21,7 +26,7 @@
org.scala-langscala-library
- 2.12.1
+ 2.13.5
@@ -34,22 +39,28 @@
org.scalatest
- scalatest_2.12
- 3.0.3
+ scalatest_2.13
+ 3.2.6testorg.scalamock
- scalamock-scalatest-support_2.12
- 3.6.0
+ scalamock_2.13
+ 5.1.0test
- com.ullink.slack
- simpleslackapi
- 1.0.0
+ com.slack.api
+ bolt-socket-mode
+ 1.6.2
+
+
+ org.slf4j
+ slf4j-api
+
+
@@ -68,14 +79,14 @@
org.json4s
- json4s-native_2.12
- 3.5.1
+ json4s-native_2.13
+ 3.6.11org.json4s
- json4s-ext_2.12
- 3.5.1
+ json4s-ext_2.13
+ 3.6.11
diff --git a/slackIntegration-server/src/main/resources/buildServerResources/configPage.jsp b/slackIntegration-server/src/main/resources/buildServerResources/configPage.jsp
index b938690..b3a69b0 100644
--- a/slackIntegration-server/src/main/resources/buildServerResources/configPage.jsp
+++ b/slackIntegration-server/src/main/resources/buildServerResources/configPage.jsp
@@ -35,6 +35,10 @@
+
+ Send message as other user.
+ Please make sure that you granted the scope chat:write.customize
+