forked from loafle/openapi-generator-original
[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:
parent
76d3cb5002
commit
61e706ba6f
@ -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"));
|
||||
|
@ -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
|
||||
|
@ -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)));
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
32
samples/client/petstore/akka-scala/build.sbt
Normal file
32
samples/client/petstore/akka-scala/build.sbt
Normal 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user