Skip to content
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

Upgrade scalapb machinery to modern version #713

Merged
merged 1 commit into from
Nov 4, 2019

Conversation

slandelle
Copy link
Contributor

@slandelle slandelle commented Nov 2, 2019

Fixes #546

Motivation:

Protobuf machinery currently uses com.trueaccord.scalapb:compilerplugin which is the old groupId and is not available for Scala 2.13.

Modifications:

  • Upgrade com.thesamet:sbt-protoc to 0.99.26
  • Switch to com.thesamet.scalapb:compilerplugin 0.9.3
  • Remove com.google.protobuf:protobuf-java forced version upgrade as version now pulled is 3.8.0

Note:

  • scala-maven-plugin test suite passes with Scala 2.12 build with those changes.

Result:

Zinc now uses a modern version of scalapb, where a crosscompiled version for Scala 2.13 is available.

@eed3si9n
Copy link
Member

eed3si9n commented Nov 2, 2019

Thanks @slandelle!

Copy link
Member

@eed3si9n eed3si9n left a comment

Choose a reason for hiding this comment

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

Could you add mima exclusion rules for "sbt.internal.inc.schema.*" until mimaReportBinaryIssues passes?

build.sbt Outdated Show resolved Hide resolved
Motivation:

Protobuf machinery currently uses com.trueaccord.scalapb:compilerplugin which is the old groupId and is not available for Scala 2.13.

Modifications:

* Upgrade com.thesamet:sbt-protoc to 0.99.26
* Switch to com.thesamet.scalapb:compilerplugin 0.9.3
* Remove com.google.protobuf:protobuf-java forced version upgrade as version now pulled is 3.8.0
* Update mima excludes

Note:

* scala-maven-plugin test suite passes with Scala 2.12 build with those changes.

Result:

Zinc now uses a modern version of scalapb, where a crosscompiled version for Scala 2.13 is available.
@slandelle
Copy link
Contributor Author

Could you add mima exclusion rules for "sbt.internal.inc.schema.*" until mimaReportBinaryIssues passes?

@eed3si9n fixed!

@slandelle
Copy link
Contributor Author

@eed3si9n BTW, why is dev HEAD version 1.3.0-SNAPSHOT while 1.3.1 is out?

@eed3si9n
Copy link
Member

eed3si9n commented Nov 2, 2019

I guess that's just how sbt-dynver calculates the version until we tag it. develop would be Zinc 1.4.x or 2.x.

Copy link
Member

@jvican jvican left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@jvican jvican merged commit 206d6e8 into sbt:develop Nov 4, 2019
@slandelle slandelle deleted the sbt-protoc-upgrade branch November 4, 2019 09:20
@slandelle
Copy link
Contributor Author

Thanks for merging!

@dwijnand
Copy link
Member

dwijnand commented Nov 4, 2019

I guess that's just how sbt-dynver calculates the version until we tag it. develop would be Zinc 1.4.x or 2.x.

You need to change the if ((ThisBuild / isSnapshot).value) "1.3.0-SNAPSHOT" in build.sbt. And you could even use isVersionStable instead of isSnapshot.

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.

ScalaPB dependency is outdated
4 participants