[Akka-Scala] Add build.sbt to Akka-scala (#7076)

* Add build.sbt to Akka-scala

* Add readme.md and build.sbt to petstore sample
This commit is contained in:
Ramzi Maalej 2017-11-30 20:03:10 -08:00 committed by William Cheng
parent 76d3cb5002
commit 61e706ba6f
5 changed files with 67 additions and 1 deletions

View File

@ -100,6 +100,7 @@ public class AkkaScalaClientCodegen extends AbstractScalaCodegen implements Code
supportingFiles.add(new SupportingFile("README.mustache", "", "README.md"));
supportingFiles.add(new SupportingFile("pom.mustache", "", "pom.xml"));
supportingFiles.add(new SupportingFile("build.sbt.mustache", "", "build.sbt"));
supportingFiles.add(new SupportingFile("reference.mustache", resourcesFolder, "reference.conf"));
final String invokerFolder = (sourceFolder + File.separator + invokerPackage).replace(".", File.separator);
supportingFiles.add(new SupportingFile("apiRequest.mustache", invokerFolder, "ApiRequest.scala"));

View File

@ -0,0 +1,32 @@
version := "{{artifactVersion}}"
name := "{{artifactId}}"
organization := "{{groupId}}"
scalaVersion := "2.11.8"
libraryDependencies ++= Seq(
"io.swagger" % "swagger-core" % "1.5.15",
"com.typesafe" % "config" % "1.2.1",
"com.typesafe.akka" % "akka-actor_2.10" % "2.3.9",
"io.spray" % "spray-client" % "1.3.1",
"joda-time" % "joda-time" % "2.2",
"org.joda" % "joda-convert" % "1.2",
"org.json4s" % "json4s-jackson_2.10" % "3.2.11",
"org.scalatest" %% "scalatest" % "2.2.4" % "test",
"junit" % "junit" % "4.8.1" % "test"
)
resolvers ++= Seq(
Resolver.mavenLocal
)
scalacOptions := Seq(
"-unchecked",
"-deprecation",
"-feature"
)
publishArtifact in (Compile, packageDoc) := false

View File

@ -25,5 +25,6 @@ public class AkkaScalaClientCodegenTest {
List<SupportingFile> supportingFiles = this.akkaScalaClientCodegen.supportingFiles();
assertThat(supportingFiles.contains(new SupportingFile("README.mustache", "", "README.md")), is(equalTo(true)));
assertThat(supportingFiles.contains(new SupportingFile("build.sbt.mustache", "", "build.sbt")), is(equalTo(true)));
}
}

View File

@ -10,7 +10,7 @@ Automatically generated by the [Swagger Codegen](https://github.com/swagger-api/
- API version: 1.0.0
- Package version:
- Build date: 2017-11-27T17:16:13.609+08:00
- Build date: 2017-11-29T09:41:04.759-08:00
- Build package: io.swagger.codegen.languages.AkkaScalaClientCodegen
# Requirements

View File

@ -0,0 +1,32 @@
version := "1.0.0"
name := "scala-akka-petstore-client"
organization := "io.swagger"
scalaVersion := "2.11.8"
libraryDependencies ++= Seq(
"io.swagger" % "swagger-core" % "1.5.15",
"com.typesafe" % "config" % "1.2.1",
"com.typesafe.akka" % "akka-actor_2.10" % "2.3.9",
"io.spray" % "spray-client" % "1.3.1",
"joda-time" % "joda-time" % "2.2",
"org.joda" % "joda-convert" % "1.2",
"org.json4s" % "json4s-jackson_2.10" % "3.2.11",
"org.scalatest" %% "scalatest" % "2.2.4" % "test",
"junit" % "junit" % "4.8.1" % "test"
)
resolvers ++= Seq(
Resolver.mavenLocal
)
scalacOptions := Seq(
"-unchecked",
"-deprecation",
"-feature"
)
publishArtifact in (Compile, packageDoc) := false