Skip to content

feat: basic sbt plugin#384

Merged
raboof merged 6 commits intolightbend:mainfrom
raboof:sbt-plugin
Sep 14, 2021
Merged

feat: basic sbt plugin#384
raboof merged 6 commits intolightbend:mainfrom
raboof:sbt-plugin

Conversation

@raboof
Copy link
Copy Markdown
Contributor

@raboof raboof commented Sep 14, 2021

With dummy codegen.

This provides nice infrastructure for the part of codegen that happens each time the .proto changes, but not yet for the 'one-off' code generation of code that is supposed to be adapted by the user later. Perhaps that should be an explicit command anyway, to prevent 'leaving behind' generated code and confusing people when class or package names change.

Fixes #379

@raboof raboof marked this pull request as draft September 14, 2021 09:38
@raboof raboof marked this pull request as ready for review September 14, 2021 09:51
Copy link
Copy Markdown
Contributor

@patriknw patriknw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Great to reuse the experience from Akka gRPC (I assume).

* limitations under the License.
*/

package com.akkaserverless.codegen.scala
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

scala or java in the package name is typically not a good idea, can we use scalasdk?

Comment thread build.sbt Outdated
.settings(
scalaVersion := Dependencies.ScalaVersionForSbtPlugin,
buildInfoKeys := Seq[BuildInfoKey](name, organization, version, scalaVersion, sbtVersion),
buildInfoPackage := "com.akkaserverless.codegen.scala")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

se comment below about package name

@raboof raboof merged commit 9f42e49 into lightbend:main Sep 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sbt plugin for Scala codegen

3 participants