Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ public AkkaScalaClientCodegen() {

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"));
Expand Down
Original file line number Diff line number Diff line change
@@ -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

Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ public void shouldGenerateReadmeFile() {
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)));
}
}
2 changes: 1 addition & 1 deletion samples/client/petstore/akka-scala/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
32 changes: 32 additions & 0 deletions samples/client/petstore/akka-scala/build.sbt
Original file line number Diff line number Diff line change
@@ -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