Skip to content

Commit 176c5e5

Browse files
authored
Merge pull request #7739 from smartward-com-au/kotlin
Kotlin generator migration/cleanup
2 parents 70294ac + da5a7f3 commit 176c5e5

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

bin/kotlin-client-petstore.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ fi
2626

2727
# if you've executed sbt assembly previously it will use that instead.
2828
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
29-
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 $@"
29+
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 $@"
3030

31-
# java ${JAVA_OPTS} -jar ${executable} ${ags}
31+
java ${JAVA_OPTS} -jar ${executable} ${ags}

bin/windows/kotlin-client-petstore.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ If Not Exist %executable% (
55
)
66

77
REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties
8-
set ags=generate --artifact-id "kotlin-petstore-client" -i modules\swagger-codegen\src\test\resources\2_0\petstore.yaml -l kotlin -o samples\client\petstore\kotlin
8+
set ags=generate --artifact-id "kotlin-petstore-client" -i modules\swagger-codegen\src\test\resources\2_0\petstore.yaml -l kotlin-client -o samples\client\petstore\kotlin
99

10-
REM java %JAVA_OPTS% -jar %executable% %ags%
10+
java %JAVA_OPTS% -jar %executable% %ags%

modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/KotlinClientCodegen.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818
import java.util.HashSet;
1919
import java.util.Map;
2020

21+
/**
22+
* new version of this class can be found on: https://github.com/swagger-api/swagger-codegen-generators
23+
* @deprecated use <code>io.swagger.codegen.languages.kotlin.KotlinClientCodegen</code> instead.
24+
*/
25+
@Deprecated
2126
public class KotlinClientCodegen extends DefaultCodegen implements CodegenConfig {
2227
static Logger LOGGER = LoggerFactory.getLogger(KotlinClientCodegen.class);
2328

0 commit comments

Comments
 (0)