Skip to content

Migrate license to Apache 2.0 - #2231

Open
subhramit wants to merge 14 commits into
apache:masterfrom
subhramit:apache-license-migration
Open

subhramit wants to merge 14 commits into
apache:masterfrom
subhramit:apache-license-migration

Conversation

@subhramit

Copy link
Copy Markdown
Contributor
  • Migrate license from MIT to Apache 2.0
  • Replace existing Uber license headers in source files
  • Add license header in remaining source files
  • Inventory third-party licenses and attribution
  • Change project and SCM URLs from uber/NullAway to apache/nullaway
  • Change the generated Maven POM’s license from MIT to Apache 2.0
  • Change the POM developer metadata from Uber to the Apache Software Foundation
  • Configure Gradle subprojects to include LICENSE.txt, NOTICE, THIRD_PARTY.md, and third-party license texts under META-INF/ in generated JARs
  • Add CI job for Spark-style license audit

Note: For now, preserved Maven coordinates such as com.uber.nullaway:nullaway, Java package names, and versions - as renaming those would be a separate compatibility-affecting migration.

AI assistance - Zed + gpt 6.1 sol

Assisted-by: Zed (GPT-6.1 Sol)
Assisted-by: Zed (GPT-6.1 Sol)
Preserve third-party and mixed-ownership notices. Remove redundant Uber-
only MIT blocks immediately after Java package declarations.

Assisted-by: Zed (GPT-6.1 Sol)
Assisted-by: Zed (GPT-6.1 Sol)
Record copied source, generated-model provenance, and resolved bundled
dependencies. Include full license texts and retain outstanding
release-review requirements.

Assisted-by: Zed (GPT-6.1 Sol)
Assisted-by: Zed (GPT-6.1 Sol)
Preserve project legal files in binary, source, and Javadoc archives.
Retain fat-JAR dependency notices separately to prevent collisions.

Assisted-by: Zed (GPT-6.1 Sol)
Assisted-by: Zed (GPT-6.1 Sol)
Assisted-by: Zed (GPT-6.1 Sol)
Comment thread AGENTS.md Outdated
Comment on lines +1 to +17
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at

https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

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.

Hey, please never do this. AGENTS.md loads to every agent, and bloating the context with a license header is wasteful.

@subhramit subhramit Dec 3, 2026 •

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 ran the replace/add script agnostically on all java and source files, so missed noticing this.

But now that we are discussing, not even SPDX?
E.g. https://github.com/apache/airflow/blob/59f890be7a46cfab3d2dfa93903919372d9d1205/AGENTS.md?plain=1#L1-L2

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.

Okay I checked some others, only airflow has that, better we drop.

Comment thread NOTICE Outdated
Comment on lines +15 to +16
This product includes software developed by The Apache Software
Foundation (http://www.apache.org/).

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.

Lines 15-16 duplicate lines 4-5.

Comment thread NOTICE Outdated
Comment on lines +10 to +13
This product includes code from Apache Pig:

Apache Pig
Copyright 2008-2014 The Apache Software Foundation

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.

I wonder if we can drop the code and reimplement it.

@subhramit subhramit Dec 3, 2026 •

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.

This isn't addressed yet (wanted to leave it open for discussion) but got marked outdated.

Use JMeter's gather/render tooling with resolved artifact graphs.
Separate project, source-release, and binary licensing, retaining
only documented exact-version upstream exceptions.

Verify dependency changes, missing metadata, exception guards, and
rebuilds from source releases in CI.

Assisted-by: Zed (GPT-6.1 Sol)
Exclude root AGENTS.md from header migration and RAT so the removed
boilerplate is not reintroduced.

Assisted-by: Zed (GPT-6.1 Sol)
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.

2 participants