diff --git a/build.sbt b/build.sbt index 7df2975b..53fe8c5b 100644 --- a/build.sbt +++ b/build.sbt @@ -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", diff --git a/kotlin-generator/src/main/scala/models/generator/kotlin/KotlinGenerator.scala b/kotlin-generator/src/main/scala/models/generator/kotlin/KotlinGenerator.scala index d54d0b6a..45af765d 100644 --- a/kotlin-generator/src/main/scala/models/generator/kotlin/KotlinGenerator.scala +++ b/kotlin-generator/src/main/scala/models/generator/kotlin/KotlinGenerator.scala @@ -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._ @@ -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"