-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use flat_package for scala codegen by default #106
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,5 +25,11 @@ javaAgents ++= Seq( | |
enablePlugins(JavaAgent) | ||
enablePlugins(AkkaGrpcPlugin) | ||
|
||
// By default we enable the 'flat_package' option by default to get package names | ||
// that are more consistent between Scala and Java. | ||
// Because the interop tests generate both Scala and Java code, however, here we disable this | ||
// option to avoid name clashes in the generated classes: | ||
(codeGeneratorSettings in Compile) := Seq.empty | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 not super nice to have this stringly-typed but most flexible and not really worth adding infrastructure for I suppose. |
||
|
||
(akkaGrpcCodeGenerators in Compile) += GeneratorAndSettings(JavaServerCodeGenerator) | ||
(akkaGrpcModelGenerators in Compile) += PB.gens.java -> sourceManaged.value |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package io.akka.grpc.echo | ||
package io.akka.grpc | ||
|
||
import scala.concurrent.Future | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not used interpolation.