Visitar URL original
Opensourcing kotlin protos by deannagarcia · Pull Request #8272 · protocolbuffers/protobuf · GitHub
Skip to content

Opensourcing kotlin protos - #8272

Merged
deannagarcia merged 32 commits into
protocolbuffers:masterfrom
deannagarcia:kotlinProtos
Apr 21, 2021
Merged

deannagarcia merged 32 commits into
protocolbuffers:masterfrom
deannagarcia:kotlinProtos

Conversation

@deannagarcia

@deannagarcia deannagarcia commented Feb 9, 2021 •

Copy link
Copy Markdown
Contributor

Adding kotlin syntax to java protobufs.

@deannagarcia
deannagarcia marked this pull request as ready for review April 2, 2021 17:42
check_filenames: true
skip: ./.git,./conformance/third_party,*.snk,*.pb,*.pb.cc,*.pb.h,./src/google/protobuf/testdata,./objectivec/Tests,./python/compatibility_tests/v2.5.0/tests/google/protobuf/internal
ignore_words_list: "alow,alse,ba,cleare,copyable,cloneable,dedup,dur,errorprone,files',fo,fundementals,hel,importd,inout,leapyear,nd,nin,ois,ons,parseable,process',te,testof,ue,unparseable,wasn,wee,gae,keyserver,objext,od,OptIn"
ignore_words_list: "alow,alse,ba,cleare,copyable,cloneable,dedup,dur,errorprone,files',fo,fundementals,hel,importd,inout,leapyear,nd,nin,ois,ons,parseable,process',te,testof,ue,unparseable,wasn,wee,gae,keyserver,objext,od,optin"

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.

Should this be removed? I think this made its way into a different PR.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It turns out that the spell check has to have the lowercase version, so this is the fix to the other PR.

Comment thread java/kotlin-lite/pom.xml
<artifactId>protobuf-kotlin-lite</artifactId>
<packaging>bundle</packaging>

<name>Protocol Buffers [Lite]</name>

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.

nit: Do we want Kotlin in the name somewhere?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure how these naming conventions are supposed to work but I copied this from Java because it wasn't java specific either.

<mkdir dir="${generated.sources.dir}"/>
<exec executable="${protoc}">
<arg value="--java_out=${generated.sources.dir}"/>
<arg value="--proto_path=${protobuf.source.dir}"/>

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.

We should likely expose a kotlin version of all of these proto definitions as they are normally part of the public API.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done!

…ng kotlin generated code for standard protos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants