Skip to content

Commit 57134f7

Browse files
bobbai00claudechenlica
authored
fix: restore proper license headers for third-party code and assets (apache#4134)
<!-- Thanks for sending a pull request (PR)! Here are some tips for you: 1. If this is your first time, please read our contributor guidelines: [Contributing to Texera](https://github.com/apache/texera/blob/main/CONTRIBUTING.md) 2. Ensure you have added or run the appropriate tests for your PR 3. If the PR is work in progress, mark it a draft on GitHub. 4. Please write your PR title to summarize what this PR proposes, we are following Conventional Commits style for PR titles as well. 5. Be sure to keep the PR description updated to reflect all changes. --> ### What changes were proposed in this PR? The third-party code (all MIT licensed, Category A) is compatible with Apache License 2.0 but requires proper attribution per Apache policy. This PR addresses license compliance issues identified during an audit: MIT License Headers Restored: - com/kjetland/** - mbknor-jackson-jsonschema (MIT) - frontend/src/app/common/formly/*.ts - Google Angular examples (MIT) - pyright-language-service/src/*.ts - TypeFox monaco-languageclient (MIT) - Replaced CC-BY 3.0 icons with MIT-licensed alternatives from SVGRepo - Removed `hub_icon.svg` (which is from Shutterstock using incompatible license) LICENSE File: - Added third-party attribution section grouped by license type - Added licenses/LICENSE-MIT.txt Config: - Updated .licenserc.yaml to exclude third-party files from Apache header checks References: - [Apache licensing-howto: Bundling permissively-licensed dependencies](https://infra.apache.org/licensing-howto.html#permissive-deps) - [ASF 3rd Party License Policy](https://www.apache.org/legal/resolved.html) ### Any related issues, documentation, discussions? <!-- Please use this section to link other resources if not mentioned already. 1. If this PR fixes an issue, please include `Fixes apache#1234`, `Resolves apache#1234` or `Closes apache#1234`. If it is only related, simply mention the issue number. 2. If there is design documentation, please add the link. 3. If there is a discussion in the mailing list, please add the link. --> Closes apache#4135. Related to apache#4132. ### How was this PR tested? <!-- If tests were added, say they were added here. Or simply mention that if the PR is tested with existing test cases. Make sure to include/update test cases that check the changes thoroughly including negative and positive cases if possible. If it was tested in a way different from regular unit tests, please clarify how you tested step by step, ideally copy and paste-able, so that other reviewers can test and check, and descendants can verify in the future. If tests were not added, please describe why they were not added and/or why it was difficult to add. --> Manual verified. ### Was this PR authored or co-authored using generative AI tooling? <!-- If generative AI tooling has been used in the process of authoring this PR, please include the phrase: 'Generated-by: ' followed by the name of the tool and its version. If no, write 'No'. Please refer to the [ASF Generative Tooling Guidance](https://www.apache.org/legal/generative-tooling.html) for details. --> Co-authored with Claude code. --------- Co-authored-by: Claude <[email protected]> Co-authored-by: Chen Li <[email protected]>
1 parent 8418521 commit 57134f7

30 files changed

Lines changed: 182 additions & 960 deletions

‎.licenserc.yaml‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,17 @@ header:
2626
- '.licenserc.yaml'
2727
- 'frontend/.yarn/**'
2828
- 'amber/src/main/python/proto/**'
29+
# Third-party code with MIT license - see LICENSE file for attribution
30+
- 'common/workflow-operator/src/main/scala/com/kjetland/**'
31+
# TypeFox monaco-languageclient derived files (MIT License)
32+
- 'pyright-language-service/src/main.ts'
33+
- 'pyright-language-service/src/language-server-runner.ts'
34+
- 'pyright-language-service/src/server-commons.ts'
35+
- 'frontend/src/app/common/formly/array.type.ts'
36+
- 'frontend/src/app/common/formly/object.type.ts'
37+
- 'frontend/src/app/common/formly/multischema.type.ts'
38+
- 'frontend/src/app/common/formly/null.type.ts'
39+
# Third-party SVG assets - see LICENSE file for attribution
40+
- 'frontend/src/assets/svg/operator-view-result.svg'
41+
- 'frontend/src/assets/svg/operator-reuse-cache-invalid.svg'
42+
- 'frontend/src/assets/svg/operator-reuse-cache-valid.svg'

‎LICENSE‎

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,3 +199,41 @@
199199
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200200
See the License for the specific language governing permissions and
201201
limitations under the License.
202+
203+
--------------------------------------------------------------------------------
204+
THIRD-PARTY DEPENDENCIES
205+
--------------------------------------------------------------------------------
206+
207+
This product bundles source code and assets from third-party projects.
208+
See licenses/ for the full text of these licenses:
209+
- licenses/LICENSE-MIT.txt
210+
211+
MIT License (licenses/LICENSE-MIT.txt)
212+
--------------------------------------
213+
214+
This product bundles code derived from mbknor-jackson-jsonschema:
215+
- common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/
216+
Copyright (c) 2016 Kjell Tore Eliassen (mbknor)
217+
Source: https://github.com/mbknor/mbknor-jackson-jsonschema
218+
219+
This product bundles code derived from Google Angular formly examples:
220+
- frontend/src/app/common/formly/array.type.ts
221+
- frontend/src/app/common/formly/object.type.ts
222+
- frontend/src/app/common/formly/multischema.type.ts
223+
- frontend/src/app/common/formly/null.type.ts
224+
Copyright (c) 2018 Google Inc. All Rights Reserved.
225+
Source: https://angular.io
226+
227+
This product bundles code derived from TypeFox monaco-languageclient:
228+
- pyright-language-service/src/main.ts
229+
- pyright-language-service/src/language-server-runner.ts
230+
- pyright-language-service/src/server-commons.ts
231+
Copyright (c) 2024 TypeFox and others.
232+
Source: https://github.com/TypeFox/monaco-languageclient
233+
234+
This product includes SVG icons from SVGRepo:
235+
- frontend/src/assets/svg/operator-view-result.svg
236+
- frontend/src/assets/svg/operator-reuse-cache-valid.svg
237+
- frontend/src/assets/svg/operator-reuse-cache-invalid.svg
238+
Source: https://www.svgrepo.com
239+
License: MIT License

‎common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/JsonSchemaDraft.java‎

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,9 @@
11
/*
2-
* Licensed to the Apache Software Foundation (ASF) under one
3-
* or more contributor license agreements. See the NOTICE file
4-
* distributed with this work for additional information
5-
* regarding copyright ownership. The ASF licenses this file
6-
* to you under the Apache License, Version 2.0 (the
7-
* "License"); you may not use this file except in compliance
8-
* with the License. You may obtain a copy of the License at
2+
* Copyright (c) 2016 Kjell Tore Eliassen (mbknor)
3+
* Licensed under the MIT License.
94
*
10-
* http://www.apache.org/licenses/LICENSE-2.0
11-
*
12-
* Unless required by applicable law or agreed to in writing,
13-
* software distributed under the License is distributed on an
14-
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15-
* KIND, either express or implied. See the License for the
16-
* specific language governing permissions and limitations
17-
* under the License.
5+
* This file is derived from mbknor-jackson-jsonschema.
6+
* Source: https://github.com/mbknor/mbknor-jackson-jsonschema
187
*/
198

209
package com.kjetland.jackson.jsonSchema;

‎common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/JsonSchemaGenerator.scala‎

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,9 @@
11
/*
2-
* Licensed to the Apache Software Foundation (ASF) under one
3-
* or more contributor license agreements. See the NOTICE file
4-
* distributed with this work for additional information
5-
* regarding copyright ownership. The ASF licenses this file
6-
* to you under the Apache License, Version 2.0 (the
7-
* "License"); you may not use this file except in compliance
8-
* with the License. You may obtain a copy of the License at
2+
* Copyright (c) 2016 Kjell Tore Eliassen (mbknor)
3+
* Licensed under the MIT License.
94
*
10-
* http://www.apache.org/licenses/LICENSE-2.0
11-
*
12-
* Unless required by applicable law or agreed to in writing,
13-
* software distributed under the License is distributed on an
14-
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15-
* KIND, either express or implied. See the License for the
16-
* specific language governing permissions and limitations
17-
* under the License.
5+
* This file is derived from mbknor-jackson-jsonschema.
6+
* Source: https://github.com/mbknor/mbknor-jackson-jsonschema
187
*/
198

209
package com.kjetland.jackson.jsonSchema

‎common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/annotations/JsonSchemaArrayWithUniqueItems.java‎

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,12 @@
11
/*
2-
* Licensed to the Apache Software Foundation (ASF) under one
3-
* or more contributor license agreements. See the NOTICE file
4-
* distributed with this work for additional information
5-
* regarding copyright ownership. The ASF licenses this file
6-
* to you under the Apache License, Version 2.0 (the
7-
* "License"); you may not use this file except in compliance
8-
* with the License. You may obtain a copy of the License at
2+
* Copyright (c) 2016 Kjell Tore Eliassen (mbknor)
3+
* Licensed under the MIT License.
94
*
10-
* http://www.apache.org/licenses/LICENSE-2.0
11-
*
12-
* Unless required by applicable law or agreed to in writing,
13-
* software distributed under the License is distributed on an
14-
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15-
* KIND, either express or implied. See the License for the
16-
* specific language governing permissions and limitations
17-
* under the License.
5+
* This file is derived from mbknor-jackson-jsonschema.
6+
* Source: https://github.com/mbknor/mbknor-jackson-jsonschema
187
*/
198

9+
2010
package com.kjetland.jackson.jsonSchema.annotations;
2111

2212
import java.lang.annotation.Retention;

‎common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/annotations/JsonSchemaBool.java‎

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,12 @@
11
/*
2-
* Licensed to the Apache Software Foundation (ASF) under one
3-
* or more contributor license agreements. See the NOTICE file
4-
* distributed with this work for additional information
5-
* regarding copyright ownership. The ASF licenses this file
6-
* to you under the Apache License, Version 2.0 (the
7-
* "License"); you may not use this file except in compliance
8-
* with the License. You may obtain a copy of the License at
2+
* Copyright (c) 2016 Kjell Tore Eliassen (mbknor)
3+
* Licensed under the MIT License.
94
*
10-
* http://www.apache.org/licenses/LICENSE-2.0
11-
*
12-
* Unless required by applicable law or agreed to in writing,
13-
* software distributed under the License is distributed on an
14-
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15-
* KIND, either express or implied. See the License for the
16-
* specific language governing permissions and limitations
17-
* under the License.
5+
* This file is derived from mbknor-jackson-jsonschema.
6+
* Source: https://github.com/mbknor/mbknor-jackson-jsonschema
187
*/
198

9+
2010
package com.kjetland.jackson.jsonSchema.annotations;
2111

2212
import java.lang.annotation.Retention;

‎common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/annotations/JsonSchemaDefault.java‎

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,12 @@
11
/*
2-
* Licensed to the Apache Software Foundation (ASF) under one
3-
* or more contributor license agreements. See the NOTICE file
4-
* distributed with this work for additional information
5-
* regarding copyright ownership. The ASF licenses this file
6-
* to you under the Apache License, Version 2.0 (the
7-
* "License"); you may not use this file except in compliance
8-
* with the License. You may obtain a copy of the License at
2+
* Copyright (c) 2016 Kjell Tore Eliassen (mbknor)
3+
* Licensed under the MIT License.
94
*
10-
* http://www.apache.org/licenses/LICENSE-2.0
11-
*
12-
* Unless required by applicable law or agreed to in writing,
13-
* software distributed under the License is distributed on an
14-
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15-
* KIND, either express or implied. See the License for the
16-
* specific language governing permissions and limitations
17-
* under the License.
5+
* This file is derived from mbknor-jackson-jsonschema.
6+
* Source: https://github.com/mbknor/mbknor-jackson-jsonschema
187
*/
198

9+
2010
package com.kjetland.jackson.jsonSchema.annotations;
2111

2212
import java.lang.annotation.Retention;

‎common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/annotations/JsonSchemaDescription.java‎

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,12 @@
11
/*
2-
* Licensed to the Apache Software Foundation (ASF) under one
3-
* or more contributor license agreements. See the NOTICE file
4-
* distributed with this work for additional information
5-
* regarding copyright ownership. The ASF licenses this file
6-
* to you under the Apache License, Version 2.0 (the
7-
* "License"); you may not use this file except in compliance
8-
* with the License. You may obtain a copy of the License at
2+
* Copyright (c) 2016 Kjell Tore Eliassen (mbknor)
3+
* Licensed under the MIT License.
94
*
10-
* http://www.apache.org/licenses/LICENSE-2.0
11-
*
12-
* Unless required by applicable law or agreed to in writing,
13-
* software distributed under the License is distributed on an
14-
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15-
* KIND, either express or implied. See the License for the
16-
* specific language governing permissions and limitations
17-
* under the License.
5+
* This file is derived from mbknor-jackson-jsonschema.
6+
* Source: https://github.com/mbknor/mbknor-jackson-jsonschema
187
*/
198

9+
2010
package com.kjetland.jackson.jsonSchema.annotations;
2111

2212
import java.lang.annotation.Retention;

‎common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/annotations/JsonSchemaExamples.java‎

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,12 @@
11
/*
2-
* Licensed to the Apache Software Foundation (ASF) under one
3-
* or more contributor license agreements. See the NOTICE file
4-
* distributed with this work for additional information
5-
* regarding copyright ownership. The ASF licenses this file
6-
* to you under the Apache License, Version 2.0 (the
7-
* "License"); you may not use this file except in compliance
8-
* with the License. You may obtain a copy of the License at
2+
* Copyright (c) 2016 Kjell Tore Eliassen (mbknor)
3+
* Licensed under the MIT License.
94
*
10-
* http://www.apache.org/licenses/LICENSE-2.0
11-
*
12-
* Unless required by applicable law or agreed to in writing,
13-
* software distributed under the License is distributed on an
14-
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15-
* KIND, either express or implied. See the License for the
16-
* specific language governing permissions and limitations
17-
* under the License.
5+
* This file is derived from mbknor-jackson-jsonschema.
6+
* Source: https://github.com/mbknor/mbknor-jackson-jsonschema
187
*/
198

9+
2010
package com.kjetland.jackson.jsonSchema.annotations;
2111

2212
import java.lang.annotation.Retention;

‎common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/annotations/JsonSchemaFormat.java‎

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,12 @@
11
/*
2-
* Licensed to the Apache Software Foundation (ASF) under one
3-
* or more contributor license agreements. See the NOTICE file
4-
* distributed with this work for additional information
5-
* regarding copyright ownership. The ASF licenses this file
6-
* to you under the Apache License, Version 2.0 (the
7-
* "License"); you may not use this file except in compliance
8-
* with the License. You may obtain a copy of the License at
2+
* Copyright (c) 2016 Kjell Tore Eliassen (mbknor)
3+
* Licensed under the MIT License.
94
*
10-
* http://www.apache.org/licenses/LICENSE-2.0
11-
*
12-
* Unless required by applicable law or agreed to in writing,
13-
* software distributed under the License is distributed on an
14-
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15-
* KIND, either express or implied. See the License for the
16-
* specific language governing permissions and limitations
17-
* under the License.
5+
* This file is derived from mbknor-jackson-jsonschema.
6+
* Source: https://github.com/mbknor/mbknor-jackson-jsonschema
187
*/
198

9+
2010
package com.kjetland.jackson.jsonSchema.annotations;
2111

2212
import java.lang.annotation.Retention;

0 commit comments

Comments
 (0)