Skip to content

Commit 66912b0

Browse files
chore(deps): update all non-major dependencies (except core kotlin) (#471)
### What's done: * update all non-major dependencies (except core kotlin)
1 parent 4fc8efa commit 66912b0

File tree

5 files changed

+17
-12
lines changed

5 files changed

+17
-12
lines changed

buildSrc/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ dependencies {
1717
implementation("io.github.gradle-nexus:publish-plugin:1.1.0")
1818
implementation("org.ajoberstar.reckon:reckon-gradle:0.16.1")
1919
implementation("com.squareup:kotlinpoet:1.12.0")
20-
implementation("com.google.code.gson:gson:2.10")
20+
implementation("com.google.code.gson:gson:2.10.1")
2121
}

buildSrc/src/main/kotlin/com/saveourtool/save/buildutils/kotlin-library.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ kotlin {
9090
dependsOn(commonNonJsTest)
9191
dependencies {
9292
implementation(kotlin("test-junit5"))
93-
implementation("org.junit.jupiter:junit-jupiter-engine:5.9.1")
93+
implementation("org.junit.jupiter:junit-jupiter-engine:5.9.2")
9494
}
9595
}
9696
val nativeMain by creating {

gradle/libs.versions.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
[versions]
22
kotlin = "1.8.0"
3-
okio = "3.2.0"
3+
okio = "3.3.0"
44
serialization = "1.4.1"
55
diktat = "1.2.4.1"
66
kotlinx-cli = "0.3.5"
77
kotlinx-datetime = "0.4.0"
88
kotlinx-coroutines = "1.6.3-native-mt"
9-
junit = "5.9.1"
10-
ktoml = "0.3.0"
9+
junit = "5.9.2"
10+
ktoml = "0.4.0"
1111
multiplatform-diff = "0.4.0"
1212
kotlinpoet = "1.12.0"
1313
kotest = "5.5.4"
+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
33
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
4+
networkTimeout=10000
45
zipStoreBase=GRADLE_USER_HOME
56
zipStorePath=wrapper/dists

save-core/src/commonNonJsMain/kotlin/com/saveourtool/save/core/utils/TomlUtils.kt

+11-7
Original file line numberDiff line numberDiff line change
@@ -18,29 +18,31 @@ import com.akuleshov7.ktoml.TomlInputConfig
1818
import com.akuleshov7.ktoml.exceptions.TomlDecodingException
1919
import com.akuleshov7.ktoml.file.TomlFileReader
2020
import com.akuleshov7.ktoml.parsers.TomlParser
21-
import com.akuleshov7.ktoml.tree.TomlTable
21+
import com.akuleshov7.ktoml.tree.nodes.TomlTable
2222
import okio.FileSystem
2323
import okio.Path
2424

2525
import kotlinx.serialization.ExperimentalSerializationApi
2626
import kotlinx.serialization.serializer
2727

2828
private fun Path.testConfigFactory(table: TomlTable) =
29-
when (table.fullTableName.uppercase().replace("\"", "")) {
29+
when (table.fullTableName()
30+
.uppercase()
31+
.replace("\"", "")) {
3032
TestConfigSections.FIX.name -> this.createPluginConfig<FixPluginConfig>(
31-
table.fullTableName
33+
table.fullTableName()
3234
)
3335
TestConfigSections.`FIX AND WARN`.name -> this.createPluginConfig<FixAndWarnPluginConfig>(
34-
table.fullTableName
36+
table.fullTableName()
3537
)
3638
TestConfigSections.WARN.name -> this.createPluginConfig<WarnPluginConfig>(
37-
table.fullTableName
39+
table.fullTableName()
3840
)
3941
TestConfigSections.GENERAL.name -> this.createPluginConfig<GeneralConfig>(
40-
table.fullTableName
42+
table.fullTableName()
4143
)
4244
else -> throw PluginException(
43-
"Received unknown plugin section name in the input: [${table.fullTableName}]." +
45+
"Received unknown plugin section name in the input: [${table.fullTableName()}]." +
4446
" Please check your <$this> config"
4547
)
4648
}
@@ -67,6 +69,8 @@ private inline fun <reified T : PluginConfig> Path.createPluginConfig(
6769
throw e
6870
}
6971

72+
private fun TomlTable.fullTableName(): String = fullTableKey.toString()
73+
7074
/**
7175
* Create the list of plugins from toml file with plugin sections
7276
*

0 commit comments

Comments
 (0)