-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4a2f9d8
commit 9b5688c
Showing
14 changed files
with
38 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
core/src/main/scala/higherkindness/mu/rpc/srcgen/FileUtil.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package higherkindness.mu.rpc.srcgen | ||
|
||
import java.io._ | ||
|
||
object FileUtil { | ||
|
||
implicit class FileOps(val file: File) extends AnyVal { | ||
|
||
def write(lines: Seq[String]): Unit = { | ||
val writer = new PrintWriter(file) | ||
try lines.foreach(writer.println) | ||
finally writer.close() | ||
} | ||
|
||
def write(line: String): Unit = write(Seq(line)) | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
version := sys.props("version") | ||
|
||
libraryDependencies ++= Seq( | ||
"io.higherkindness" %% "mu-rpc-channel" % sys.props("version") | ||
"io.higherkindness" %% "mu-rpc-service" % sys.props("mu") | ||
) | ||
|
||
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.1" cross CrossVersion.patch) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
version := sys.props("version") | ||
|
||
libraryDependencies ++= Seq( | ||
"io.higherkindness" %% "mu-rpc-server" % sys.props("version") | ||
"io.higherkindness" %% "mu-rpc-server" % sys.props("mu") | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
version := sys.props("version") | ||
|
||
libraryDependencies ++= Seq( | ||
"io.higherkindness" %% "mu-rpc-channel" % sys.props("version") | ||
"io.higherkindness" %% "mu-rpc-service" % sys.props("mu") | ||
) | ||
|
||
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.1" cross CrossVersion.patch) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
version := sys.props("version") | ||
|
||
libraryDependencies ++= Seq( | ||
"io.higherkindness" %% "mu-rpc-channel" % sys.props("version") | ||
"io.higherkindness" %% "mu-rpc-service" % sys.props("mu") | ||
) | ||
|
||
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.1" cross CrossVersion.patch) |
4 changes: 2 additions & 2 deletions
4
plugin/src/sbt-test/sbt-mu-srcgen/importMarshallers/build.sbt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
sbt.version = 1.3.9 | ||
sbt.version = 1.3.10 |