Skip to content

Commit 3fe2065

Browse files
committed
slf4j / gson / kotlin
1 parent 02a9a04 commit 3fe2065

File tree

5 files changed

+10
-6
lines changed

5 files changed

+10
-6
lines changed

buildSrc/src/main/kotlin/toolkit-intellij-subplugin.gradle.kts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,11 @@ configurations {
4848

4949
// Exclude dependencies that ship with iDE
5050
exclude(group = "org.slf4j")
51-
// we want kotlinx-coroutines-debug and kotlinx-coroutines-test
52-
exclude(group = "org.jetbrains.kotlinx", "kotlinx-coroutines-core-jvm")
53-
exclude(group = "org.jetbrains.kotlinx", "kotlinx-coroutines-core")
51+
if (!name.startsWith("kotlinCompiler")) {
52+
// we want kotlinx-coroutines-debug and kotlinx-coroutines-test
53+
exclude(group = "org.jetbrains.kotlinx", "kotlinx-coroutines-core-jvm")
54+
exclude(group = "org.jetbrains.kotlinx", "kotlinx-coroutines-core")
55+
}
5456

5557
resolutionStrategy.eachDependency {
5658
if (requested.group == "org.jetbrains.kotlinx" && requested.name.startsWith("kotlinx-coroutines")) {

buildSrc/src/main/kotlin/toolkit-publishing-conventions.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ configurations {
5454

5555
// Make sure we exclude stuff we either A) ships with IDE, B) we don't use to cut down on size
5656
runtimeClasspath {
57-
exclude(group = "org.slf4j")
57+
exclude(group = "com.google.code.gson")
58+
exclude(group = "org.slf4j", module = "slf4j-jdk14")
5859
exclude(group = "org.jetbrains.kotlin")
5960
exclude(group = "org.jetbrains.kotlinx")
6061
}

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ junit4 = "4.13.2"
1919
junit5 = "5.11.0"
2020
# https://plugins.jetbrains.com/docs/intellij/kotlin.html#adding-kotlin-support
2121
# https://kotlinlang.org/docs/releases.html#release-details
22-
kotlin = "2.0.0"
22+
kotlin = "2.1.20"
2323
# set in <root>/settings.gradle.kts
2424
kotlinCoroutines = "1.8.0"
2525
lsp4j = "0.24.0"

plugins/core/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ dependencies {
1515
implementation(project(":plugin-core:resources"))
1616
implementation(project(":plugin-core:sdk-codegen"))
1717
implementation(project(":plugin-core:webview"))
18+
implementation(libs.slf4j.api)
1819
}
1920

2021
tasks.check {

plugins/core/jetbrains-community/src/software/aws/toolkits/jetbrains/utils/TextUtils.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ fun formatText(project: Project, language: Language, content: String): String {
2929
* Designed to convert underscore separated words (e.g. UPDATE_COMPLETE) into title cased human readable text
3030
* (e.g. Update Complete)
3131
*/
32-
fun String.toHumanReadable() = StringUtil.toTitleCase(toLowerCase().replace('_', ' '))
32+
fun String.toHumanReadable() = StringUtil.toTitleCase(lowercase().replace('_', ' '))
3333

3434
fun generateUnifiedPatch(patch: String, filePath: String): TextFilePatch {
3535
val unifiedPatch = "--- $filePath\n+++ $filePath\n$patch"

0 commit comments

Comments
 (0)