[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:
William Cheng 2017-11-21 23:24:02 +08:00 committed by GitHub
parent 573b5518be
commit 803f337d24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
30 changed files with 8 additions and 8 deletions

View File

@ -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

View File

@ -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%

View File

@ -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

View File

@ -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>

View File

@ -1,6 +1,6 @@
version := "1.0.0"
name := "scala-lagom"
name := "scala-lagom-server"
organization := "io.swagger"