Skip to content

Commit

Permalink
kotlinpoet -> kotlinpoet-jvm
Browse files Browse the repository at this point in the history
  • Loading branch information
sullis committed May 30, 2024
1 parent b09705f commit 985b0d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ lazy val kotlinGenerator = project
"com.fasterxml.jackson.core" % "jackson-databind" % jacksonVersion,
"com.fasterxml.jackson.datatype" % "jackson-datatype-joda" % jacksonVersion,
"org.threeten" % "threetenbp" % "1.6.9",
"com.squareup" % "kotlinpoet" % "1.3.0",
"com.squareup" % "kotlinpoet-jvm" % "1.17.0",
"com.squareup.retrofit2" % "retrofit" % "2.11.0",
"com.jakewharton.retrofit" % "retrofit2-rxjava2-adapter" % "1.0.0",
"org.jetbrains.kotlin" % "kotlin-stdlib" % kotlinLangVersion % "test",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package models.generator.kotlin

import java.io.StringWriter

import com.fasterxml.jackson.annotation._
import com.fasterxml.jackson.core.{JsonGenerator, JsonParser, Version}
import com.fasterxml.jackson.databind._
Expand All @@ -22,7 +21,7 @@ class KotlinGenerator
extends CodeGenerator
with KotlinUtil {

private implicit def classToClassName(clazz: java.lang.Class[_]): ClassName = new ClassName(clazz.getPackage.getName, clazz.getSimpleName)
private implicit def classToClassName(clazz: java.lang.Class[?]): ClassName = new ClassName(clazz.getPackage.getName, java.util.List.of(clazz.getSimpleName))

private val kdocClassMessage = s"This code was generated by [${classOf[KotlinGenerator].getName}]\n"

Expand Down

0 comments on commit 985b0d2

Please sign in to comment.