Skip to content

Commit

Permalink
add [sbt-test] [java-codegen-app]
Browse files Browse the repository at this point in the history
  • Loading branch information
sullis committed Nov 17, 2019
1 parent 7a2399d commit 78a3535
Show file tree
Hide file tree
Showing 7 changed files with 1,266 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/sbt-test/sbt-guardrail/java-codegen-app/build.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@

enablePlugins(GuardrailPlugin)

name := "sbt-guardrail-java-test-app"

version := "1.0." + System.currentTimeMillis

scalaVersion := "2.12.10"

scalacOptions += "-Xexperimental"

guardrailTasks in Compile := List(
JavaClient(file("petstore.json"), pkg="com.example.clients.petstore")
)

// workaround for SBT issue
unmanagedSourceDirectories in Compile += (sourceManaged in Compile).value

val jacksonVersion = "2.10.1"

libraryDependencies ++= Seq(
"com.fasterxml.jackson.core" % "jackson-databind" % jacksonVersion,
"com.fasterxml.jackson.datatype" % "jackson-datatype-jdk8" % jacksonVersion,
"com.fasterxml.jackson.datatype" % "jackson-datatype-jsr310" % jacksonVersion,
"org.asynchttpclient" % "async-http-client" % "2.10.4",
"javax.xml.bind" % "jaxb-api" % "2.3.1",
"org.scalatest" %% "scalatest" % "3.0.8" % "test"
)
Loading

0 comments on commit 78a3535

Please sign in to comment.