KAFKA-12593: Fix Apache License headers#10452
Conversation
|
Hey @debasishg and @seglo , I hope you've been well. Since you were the original contributors of the streams-scala module #4756, I wanted to ping you to see if you're available to review some fixes for a problem we've recently become aware of in the license header. It turns out that the license header should not have contained extra copyright notices, and I would like to remove them, but I'm unsure if I'm allowed to. I added a section to the As the original contributors, what do you think about just dropping the notices? Please see https://lists.apache.org/thread.html/r2df54c11c10d3d38443054998bc7dd92d34362641733c2fb7c579b50%40%3Cdev.kafka.apache.org%3E for more information. Thanks, |
| The streams-scala (streams/streams-scala) module was donated by Lightbend and the original code was copyrighted by them: | ||
| Copyright (C) 2018 Lightbend Inc. <https://www.lightbend.com> | ||
| Copyright (C) 2017-2018 Alexis Seigneurin. No newline at end of file |
There was a problem hiding this comment.
I'm not totally comfortable just dropping those notices, so I added this note here. Not sure if it's any better, though.
There was a problem hiding this comment.
I think it's better to preserve attribution. Aside from what's required from Apache2 license, what goes into NOTICE is up to us so I think this is a fine location for this.
There was a problem hiding this comment.
I agree. We should preserve attribution if we can. "Community first".
| scala { | ||
| target 'streams/**/*.scala' | ||
| scalafmt("$versions.scalafmt").configFile('checkstyle/.scalafmt.conf') | ||
| licenseHeaderFile 'checkstyle/java.header', 'package' |
There was a problem hiding this comment.
This will enforce nothing like this happens again by applying the same check we have for Java via checkstyle.
There was a problem hiding this comment.
One correction, we still don't check python/markdown/gradle/etc. files, so don't let your guard down!
Still, we're now covered for java and scala.
| Kafka Streams Scala | ||
| Copyright (C) 2018 Lightbend Inc. <https://www.lightbend.com> | ||
| Copyright (C) 2017-2018 Alexis Seigneurin. |
There was a problem hiding this comment.
I'm pretty sure there's not supposed to be extra NOTICE files in sub-directories of the project.
There was a problem hiding this comment.
It would definitely not be common/standard
| * Copyright (C) 2018 Lightbend Inc. <https://www.lightbend.com> | ||
| * Copyright (C) 2017-2018 Alexis Seigneurin. | ||
| * |
There was a problem hiding this comment.
These were the blocks that had been wrongly added to the header.
ewencp
left a comment
There was a problem hiding this comment.
LGTM, I think besides standardizing the Apache header it is also important to preserve information about lineage and attribution, which I think this accomplishes.
2ef8bba to
d13ab4d
Compare
ableegoldman
left a comment
There was a problem hiding this comment.
Thanks for tackling this
* Standardize license headers in scala, python, and gradle files. * Relocate copyright attribution to the NOTICE. * Add a license header check to `spotless` for scala files. Reviewers: Ewen Cheslack-Postava <ewencp@apache.org>, Matthias J. Sax <mjsax@apache.org>, A. Sophie Blee-Goldman <ableegoldman@apache.org
* Standardize license headers in scala, python, and gradle files. * Relocate copyright attribution to the NOTICE. * Add a license header check to `spotless` for scala files. Reviewers: Ewen Cheslack-Postava <ewencp@apache.org>, Matthias J. Sax <mjsax@apache.org>, A. Sophie Blee-Goldman <ableegoldman@apache.org
* Standardize license headers in scala, python, and gradle files. * Relocate copyright attribution to the NOTICE. * Add a license header check to `spotless` for scala files. Reviewers: Ewen Cheslack-Postava <ewencp@apache.org>, Matthias J. Sax <mjsax@apache.org>, A. Sophie Blee-Goldman <ableegoldman@apache.org
|
Cherry-picked to 2.8, 2.7, and 2.6. I doubt anyone's going to do another 2.5 patch release. |
…e-allocations-lz4 * apache-github/trunk: (243 commits) KAFKA-12590: Remove deprecated kafka.security.auth.Authorizer, SimpleAclAuthorizer and related classes in 3.0 (apache#10450) KAFKA-3968: fsync the parent directory of a segment file when the file is created (apache#10405) KAFKA-12283: disable flaky testMultipleWorkersRejoining to stabilize build (apache#10408) MINOR: remove KTable.to from the docs (apache#10464) MONOR: Remove redudant LocalLogManager (apache#10325) MINOR: support ImplicitLinkedHashCollection#sort (apache#10456) KAFKA-12587 Remove KafkaPrincipal#fromString for 3.0 (apache#10447) KAFKA-12426: Missing logic to create partition.metadata files in RaftReplicaManager (apache#10282) MINOR: Improve reproducability of raft simulation tests (apache#10422) KAFKA-12474: Handle failure to write new session keys gracefully (apache#10396) KAFKA-12593: Fix Apache License headers (apache#10452) MINOR: Fix typo in MirrorMaker v2 documentation (apache#10433) KAFKA-12600: Remove deprecated config value `default` for client config `client.dns.lookup` (apache#10458) KAFKA-12952: Remove deprecated LogConfig.Compact (apache#10451) Initial commit (apache#10454) KAFKA-12575: Eliminate Log.isLogDirOffline boolean attribute (apache#10430) KAFKA-8405; Remove deprecated `kafka-preferred-replica-election` command (apache#10443) MINOR: Fix docs for end-to-end record latency metrics (apache#10449) MINOR Replaced File with Path in LogSegmentData. (apache#10424) KAFKA-12583: Upgrade netty to 4.1.62.Final ...
The current headers in the streams-scala module, the gradle wrapper,
and some of the ducktape tests differ from the required headers for this project.
Committer Checklist (excluded from commit message)