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

review licenses for pekko-grpc-codegen and bat files (published to maven central) #411

Open
pjfanning opened this issue Nov 13, 2024 · 3 comments

Comments

@pjfanning
Copy link
Contributor

https://repository.apache.org/content/groups/staging/org/apache/pekko/pekko-grpc-codegen_2.13/1.1.1/

See pekko-grpc-codegen_2.13-1.1.1-assembly.jar and pekko-grpc-codegen_2.13-1.1.1-bat.bat

  • They are big files.
  • I am not sure if they are needed
  • The assembly jar bundles lots of scala-library, io.grpc, guava, protobuf, checkerframework classes but the only LICENSE and NOTICE in the jar are copied from the scala-library.
    • If we choose to keep publishing this file, we need to fix its build so that we add a proper LICENSE setup that properly attributes the license details for all classes bundled in the jar
  • I don't know what the bat file is but presume it also includes compiled code from many sources
@raboof
Copy link
Member

raboof commented Nov 13, 2024

I am not sure if they are needed

They are used in https://github.com/apache/pekko-grpc/blob/main/gradle-plugin/src/main/groovy/org/apache/pekko/grpc/gradle/PekkoGrpcPlugin.groovy#L108 .

The assembly jar bundles lots of scala-library, io.grpc, guava, protobuf, checkerframework classes but the only LICENSE and NOTICE in the jar are copied from the scala-library.

  • If we choose to keep publishing this file, we need to fix its build so that we add a proper LICENSE setup that properly attributes the license details for all classes bundled in the jar

Ouch, indeed.

I don't know what the bat file is but presume it also includes compiled code from many sources

I think it's basically the same as the assembly but wrapped in a way that makes it easier to execute on Windows

@pjfanning
Copy link
Contributor Author

I am not sure if they are needed

They are used in https://github.com/apache/pekko-grpc/blob/main/gradle-plugin/src/main/groovy/org/apache/pekko/grpc/gradle/PekkoGrpcPlugin.groovy#L108 .

The assembly jar bundles lots of scala-library, io.grpc, guava, protobuf, checkerframework classes but the only LICENSE and NOTICE in the jar are copied from the scala-library.

Thanks @raboof for the pointer.
The jar plain pekko-grpc-codegen jar is published with a pom file that lists the dependencies.
https://repository.apache.org/content/groups/staging/org/apache/pekko/pekko-grpc-codegen_2.13/1.1.1/pekko-grpc-codegen_2.13-1.1.1.pom

Maybe, we could get away with changing PekkoGrpcPlugin.groovy to use the plain jar and rely on Gradle to fetch the dependencies.

@raboof
Copy link
Member

raboof commented Nov 13, 2024

Maybe, we could get away with changing PekkoGrpcPlugin.groovy to use the plain jar and rely on Gradle to fetch the dependencies.

Last time I checked the gradle protobuf plugin it didn't support that, but that would indeed be great to revisit

@pjfanning pjfanning changed the title review need for pekko-grpc-codegen and bat files (published to maven central) review licenses for pekko-grpc-codegen and bat files (published to maven central) Nov 13, 2024
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

No branches or pull requests

2 participants