Skip to content

Commit

Permalink
Update runtime dependency in kotlinx.serialization plugin tests to 1.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sandwwraith authored and qodana-bot committed Jan 9, 2023
1 parent 14544c0 commit a1894ed
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 5 deletions.
24 changes: 24 additions & 0 deletions gradle/verification-metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7987,6 +7987,12 @@
<sha256 value="87ee01517d3418721737b8f02021e917e49b7065d87b8458907bebfac1fc347c" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="org.jetbrains.kotlinx" name="kotlinx-serialization-core" version="1.4.1">
<artifact name="kotlinx-serialization-core-metadata-1.4.1-all.jar">
<md5 value="e6b48fe6c8e4d796541a88f552707ade" origin="Generated by Gradle"/>
<sha256 value="11d00f05f4c0e1a894ef4cbc4370ba818d21ef70ebb015c8731af43751cfa233" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="org.jetbrains.kotlinx" name="kotlinx-serialization-core-jvm" version="1.0.0">
<artifact name="kotlinx-serialization-core-jvm-1.0.0.jar">
<md5 value="008b4a519c55ce7534359e19f099c274" origin="Generated by Gradle"/>
Expand Down Expand Up @@ -8039,6 +8045,12 @@
<sha256 value="d6651a429223c906aa51faec629c42d59266666d690d67b6bc8c447ec4ea79bb" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="org.jetbrains.kotlinx" name="kotlinx-serialization-core-jvm" version="1.4.1">
<artifact name="kotlinx-serialization-core-jvm-1.4.1.jar">
<md5 value="a97020d828c89c7df2453bdfd1cd403a" origin="Generated by Gradle"/>
<sha256 value="eba7f1c854296e4ce1418fb01360f8f10c5683e7c45aa3472018417a067636f3" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="org.jetbrains.kotlinx" name="kotlinx-serialization-core-metadata" version="1.0.0">
<artifact name="kotlinx-serialization-core-metadata-1.0.0-all.jar">
<md5 value="3346a313a80ee63d222a5d2ba6f2b342" origin="Generated by Gradle"/>
Expand Down Expand Up @@ -8109,6 +8121,12 @@
<sha256 value="f9f6f8a472e98252e679d999e44f07d83d02128ea1b2ca762cbb8d28776f64af" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="org.jetbrains.kotlinx" name="kotlinx-serialization-json" version="1.4.1">
<artifact name="kotlinx-serialization-json-metadata-1.4.1-all.jar">
<md5 value="47f4431d572e2a2bd68feda535249706" origin="Generated by Gradle"/>
<sha256 value="c316fc2b8445af447f11239388069b781a50e6747b1dc3218b1f155bb9410d19" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="org.jetbrains.kotlinx" name="kotlinx-serialization-json-jvm" version="1.0.0">
<artifact name="kotlinx-serialization-json-jvm-1.0.0.jar">
<md5 value="a7a87f36305c8bef0b5225fd3ca6bccf" origin="Generated by Gradle"/>
Expand Down Expand Up @@ -8147,6 +8165,12 @@
<sha256 value="0d302c3de73ef8db548a5537a522a35eb599ed02a29b579092362bab9c34e1fc" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="org.jetbrains.kotlinx" name="kotlinx-serialization-json-jvm" version="1.4.1">
<artifact name="kotlinx-serialization-json-jvm-1.4.1.jar">
<md5 value="9c0d33c9b12c371a5d8934c97466eb70" origin="Generated by Gradle"/>
<sha256 value="af604c46737121d4225fdb60ef0e17766a3c94b7c1c9ef76b4e3a5c7733d557e" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="org.jetbrains.kotlinx" name="kotlinx-serialization-runtime" version="0.14.0">
<artifact name="kotlinx-serialization-runtime-0.14.0.jar">
<md5 value="83d898acda02b2e219bc84555bd9ea16" origin="Generated by Gradle"/>
Expand Down
4 changes: 2 additions & 2 deletions plugins/kotlinx-serialization/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ dependencies {
testImplementation(project(":kotlinx-serialization-compiler-plugin.backend"))
testImplementation(project(":kotlinx-serialization-compiler-plugin.cli"))

testImplementation("org.jetbrains.kotlinx:kotlinx-serialization-core:1.4.0-RC")
testImplementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.0-RC")
testImplementation("org.jetbrains.kotlinx:kotlinx-serialization-core:1.4.1")
testImplementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.1")

testRuntimeOnly(intellijCore())
testRuntimeOnly(commonDependency("org.jetbrains.kotlin:kotlin-reflect")) { isTransitive = false }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ fun testSerializers(): String {
if (!str1.contains("kotlinx.serialization.internal.EnumSerializer")) return str1

/**
* Serialization 1.4.1+ have runtime factories to create EnumSerializer instead of synthetic $serializer, saving bytecode
* Serialization 1.5.0+ have runtime factories to create EnumSerializer instead of synthetic $serializer, saving bytecode
* and bringing consistency. After updating the version, uncomment this block.
*/
// val str2 = cs[1].toString()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import kotlinx.serialization.encoding.*

enum class SimpleEnum { A, B }

// Annotated enums do not require @Serializable if runtime has proper factory funciton (runtime ver. >= 1.5.0)
<!EXPLICIT_SERIALIZABLE_IS_REQUIRED!>enum<!> class MarkedNameEnum { @SerialName("a") A, B}

@Serializable
Expand Down
4 changes: 2 additions & 2 deletions plugins/kotlinx-serialization/testData/firMembers/enums.kt
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ fun testSerializers(): String {
if (!str1.contains("kotlinx.serialization.internal.EnumSerializer")) return str1

/**
* Serialization 1.4.1+ have runtime factories to create EnumSerializer instead of synthetic $serializer, saving bytecode
* and bringing consistency. After updating the version, uncomment this block.
* Serialization 1.5.0+ have runtime factories to create EnumSerializer instead of synthetic $serializer, saving bytecode
* and bringing consistency.
*/
// val str2 = cs[1].toString()
// if (!str2.contains("kotlinx.serialization.internal.EnumSerializer")) return str2
Expand Down

0 comments on commit a1894ed

Please sign in to comment.