From 0f8427c939f78a6ad5aaa0b257c08dca3165d6eb Mon Sep 17 00:00:00 2001 From: limebeck Date: Sun, 7 Jul 2024 14:28:44 +0300 Subject: [PATCH] V2.3.1: Update kotlinpoet. Fix tests (shame on me) --- build.gradle.kts | 2 +- example/build.gradle.kts | 2 +- gradle/libs.versions.toml | 2 +- src/test/kotlin/PluginTest.kt | 16 ++++++++++++---- 4 files changed, 15 insertions(+), 7 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 65e5d6a..bad0400 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -6,7 +6,7 @@ plugins { } group = "dev.limebeck" -version = "2.3.0" +version = "2.3.1" repositories { mavenCentral() diff --git a/example/build.gradle.kts b/example/build.gradle.kts index bfcc5e4..7bbd503 100644 --- a/example/build.gradle.kts +++ b/example/build.gradle.kts @@ -4,7 +4,7 @@ plugins { } group = "dev.limebeck" -version = "2.2.1" +version = rootProject.version repositories { mavenCentral() diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index ae91c90..5b68c58 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -2,7 +2,7 @@ kotlin = "2.0.0" [libraries] -kotlinpoet = { module = "com.squareup:kotlinpoet", version = "1.17.0" } +kotlinpoet = { module = "com.squareup:kotlinpoet", version = "1.18.0" } kotlin-stdlib = { module = "org.jetbrains.kotlin:kotlin-stdlib-jdk8", version.ref = "kotlin" } kotlin-plugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" } diff --git a/src/test/kotlin/PluginTest.kt b/src/test/kotlin/PluginTest.kt index ebdaf40..47dd1c9 100644 --- a/src/test/kotlin/PluginTest.kt +++ b/src/test/kotlin/PluginTest.kt @@ -91,8 +91,12 @@ class PluginTest { public val someProp5: Boolean = true - public object nested { - public val someProp: String = "SomeValue" + public val nested: Nested = object : Nested { + override val someProp: String = "SomeValue" + } + + public interface Nested { + public val someProp: String } } """.trimIndent() @@ -158,8 +162,12 @@ class PluginTest { public val someProp5: Boolean = true - public object nested { - public val someProp: String = "SomeValue" + public val nested: Nested = object : Nested { + override val someProp: String = "SomeValue" + } + + public interface Nested { + public val someProp: String } } """.trimIndent()