Skip to content

Commit

Permalink
Removes the IDL core Dependency (#254)
Browse files Browse the repository at this point in the history
* Removes the idl core dep from the project plugin

* Fixes scripted tests
  • Loading branch information
juanpedromoreno committed Apr 26, 2018
1 parent 7101e7d commit 4c6331a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
4 changes: 1 addition & 3 deletions modules/idlgen/plugin/src/main/scala/IdlGenPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,5 @@ object IdlGenPlugin extends AutoPlugin {
}

override def projectSettings: Seq[Def.Setting[_]] =
defaultSettings ++ taskSettings ++ packagingSettings ++ Seq(
libraryDependencies += "io.frees" %% "frees-rpc-idlgen-core" % freestyle.rpc.idlgen.BuildInfo.version
)
defaultSettings ++ taskSettings ++ packagingSettings
}
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
lazy val root = project
.in(file("."))
.settings(name := "root")
.settings(version := "1.0.0")
.settings(Seq(
publishMavenStyle := true,
mappings in (Compile, packageBin) ~= { _.filter(!_._1.getName.endsWith(".class")) },
idlType := "avro",
srcGenSourceDirs := Seq((Compile / resourceDirectory).value / "domain",
(Compile / resourceDirectory).value / "protocol"),
srcGenTargetDir := (Compile / sourceManaged).value / "compiled_avro",
sourceGenerators in Compile += (Compile / srcGen).taskValue,
libraryDependencies ++= Seq(
"com.chuusai" %% "shapeless" % "2.3.2"
)
))

.settings(version := "1.0.0")
.settings(Seq(
publishMavenStyle := true,
mappings in (Compile, packageBin) ~= { _.filter(!_._1.getName.endsWith(".class")) },
idlType := "avro",
srcGenSourceDirs := Seq(
(Compile / resourceDirectory).value / "domain",
(Compile / resourceDirectory).value / "protocol"),
srcGenTargetDir := (Compile / sourceManaged).value / "compiled_avro",
sourceGenerators in Compile += (Compile / srcGen).taskValue,
libraryDependencies ++= Seq(
"io.frees" %% "frees-rpc-client-core" % sys.props("version"),
"com.chuusai" %% "shapeless" % "2.3.2"
)
))
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ lazy val domain = project
publishMavenStyle := true,
mappings in (Compile, packageBin) ~= { _.filter(!_._1.getName.endsWith(".class")) },
idlType := "avro",
srcGenSourceDir := (Compile / resourceDirectory).value,
srcGenSourceDirs := Seq((Compile / resourceDirectory).value),
srcGenTargetDir := (Compile / sourceManaged).value / "compiled_avro",
sourceGenerators in Compile += (Compile / srcGen).taskValue,
libraryDependencies ++= Seq(
"io.frees" %% "frees-rpc-client-core" % sys.props("version"),
"com.chuusai" %% "shapeless" % "2.3.2"
)
))
Expand Down

0 comments on commit 4c6331a

Please sign in to comment.