Skip to content

Kotlin generator migration/cleanup#7739

Merged
HugoMario merged 18 commits intoswagger-api:3.0.0from
smartward-com-au:kotlin
Apr 11, 2018
Merged

Kotlin generator migration/cleanup#7739
HugoMario merged 18 commits intoswagger-api:3.0.0from
smartward-com-au:kotlin

Conversation

@tcslater
Copy link
Copy Markdown

@tcslater tcslater commented Feb 28, 2018

Cleaning up kotlin related files for migration to https://github.com/swagger-api/swagger-codegen-generators

Relies on related PR for swagger-codegen-generators swagger-api/swagger-codegen-generators#26

@jmini
Copy link
Copy Markdown
Contributor

jmini commented Mar 2, 2018

The cleanup tasks are now different (this explains the conflicts):

  • io.swagger.codegen.CodegenConfig is already removed
  • In /bin/kotlin-client-petstore.sh you need to uncomment the java command => java instead of # java
  • In /bin/windows/kotlin-client-petstore.bat you need to uncomment the java command => java instead of REM java

@tcslater
Copy link
Copy Markdown
Author

tcslater commented Mar 5, 2018

Additional cleanup tasks now complete

# if you've executed sbt assembly previously it will use that instead.
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
ags="generate -t modules/swagger-codegen/src/main/resources/kotlin-client -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l kotlin --artifact-id kotlin-petstore-client -o samples/client/petstore/kotlin $@"
ags="generate -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l kotlin-client --artifact-id kotlin-petstore-client -o samples/client/petstore/kotlin $@"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's weird that "language" is "kotlin-client".

@jmini
Copy link
Copy Markdown
Contributor

jmini commented Mar 7, 2018

@jimschubert having kotlin-client and kotlin-server was my suggestion in swagger-api/swagger-codegen-generators#26 Feel free to continue the discussion there.

For the moment this pull request is "On hold" until kotlin is added to the swagger-codegen-generators

@tcslater
Copy link
Copy Markdown
Author

This is should be good to merge now that swagger-api/swagger-codegen-generators#26 has gone in

@HugoMario HugoMario merged commit 176c5e5 into swagger-api:3.0.0 Apr 11, 2018
@HugoMario
Copy link
Copy Markdown
Contributor

thanks @tcslater !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants