mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-06 18:45:23 +00:00
[Scala][Lagom] rename generator from scala-lagom to scala-lagom-server (#7014)
* rename scala-lagom to scala-lagom-server * add back pom.xml and shell script * update scala-lagom-server path in circleci pom.xml * make shell script executable * rename batch file
This commit is contained in:
parent
573b5518be
commit
803f337d24
@ -26,6 +26,6 @@ fi
|
||||
|
||||
# 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/scala-lagom -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l scala-lagom -o samples/server/petstore/scala-lagom"
|
||||
ags="$@ generate -t modules/swagger-codegen/src/main/resources/scala-lagom-server -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l scala-lagom-server -o samples/server/petstore/scala-lagom-server"
|
||||
|
||||
java $JAVA_OPTS -jar $executable $ags
|
@ -5,6 +5,6 @@ If Not Exist %executable% (
|
||||
)
|
||||
|
||||
REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M
|
||||
set ags=generate -i modules\swagger-codegen\src\test\resources\2_0\petstore.yaml -l scala-lagom -o samples\server\petstore\scala-lagom
|
||||
set ags=generate -i modules\swagger-codegen\src\test\resources\2_0\petstore.yaml -l scala-lagom-server -o samples\server\petstore\scala-lagom-server
|
||||
|
||||
java %JAVA_OPTS% -jar %executable% %ags%
|
@ -10,15 +10,15 @@ public class ScalaLagomServerCodegen extends AbstractScalaCodegen implements Cod
|
||||
private String authScheme = "";
|
||||
private boolean authPreemptive=false;
|
||||
protected String groupId = "io.swagger";
|
||||
protected String artifactId = "scala-lagom";
|
||||
protected String artifactId = "scala-lagom-server";
|
||||
protected String artifactVersion = "1.0.0";
|
||||
|
||||
public ScalaLagomServerCodegen() {
|
||||
super();
|
||||
outputFolder = "generated-code/scala-lagom";
|
||||
outputFolder = "generated-code/scala-lagom-server";
|
||||
modelTemplateFiles.put("model.mustache", ".scala");
|
||||
apiTemplateFiles.put("api.mustache", ".scala");
|
||||
embeddedTemplateDir = templateDir = "scala-lagom";
|
||||
embeddedTemplateDir = templateDir = "scala-lagom-server";
|
||||
apiPackage = "io.swagger.client.api";
|
||||
modelPackage = "io.swagger.client.model";
|
||||
|
||||
@ -166,7 +166,7 @@ public class ScalaLagomServerCodegen extends AbstractScalaCodegen implements Cod
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return "scala-lagom";
|
||||
return "scala-lagom-server";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -866,7 +866,7 @@
|
||||
<module>samples/server/petstore/jaxrs-cxf-non-spring-app</module>
|
||||
<module>samples/server/petstore/java-msf4j</module>
|
||||
<module>samples/server/petstore/jaxrs-spec-interface</module>
|
||||
<module>samples/server/petstore/scala-lagom</module>
|
||||
<module>samples/server/petstore/scala-lagom-server</module>
|
||||
</modules>
|
||||
</profile>
|
||||
</profiles>
|
||||
|
@ -1,6 +1,6 @@
|
||||
version := "1.0.0"
|
||||
|
||||
name := "scala-lagom"
|
||||
name := "scala-lagom-server"
|
||||
|
||||
organization := "io.swagger"
|
||||
|
Loading…
Reference in New Issue
Block a user