From 7f5333e7025b096de5bfa71159561785d6b334b2 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 16 Dec 2025 14:33:59 +0000 Subject: [PATCH 1/2] fix: restore proper license headers for third-party code and add attribution This commit addresses license compliance issues identified during an audit: 1. Restored original MIT license headers for third-party code: - pyright-language-service/src/*.ts (TypeFox monaco-languageclient) - common/workflow-operator/src/main/scala/com/kjetland/** (mbknor-jackson-jsonschema) - frontend/src/app/common/formly/array.type.ts (Google Angular) 2. Updated LICENSE file with proper third-party attribution section including full MIT license text for each bundled dependency 3. Updated .licenserc.yaml to exclude third-party files from Apache license header checking 4. Added sbt-license-report plugin (v1.7.0) for automated dependency license tracking and compliance auditing The third-party code (all MIT licensed, Category A) is compatible with Apache License 2.0 but requires proper attribution per Apache policy. --- .licenserc.yaml | 6 + LICENSE | 104 ++++++++++++++++++ .../jackson/jsonSchema/JsonSchemaDraft.java | 19 +--- .../jsonSchema/JsonSchemaGenerator.scala | 19 +--- .../JsonSchemaArrayWithUniqueItems.java | 20 +--- .../annotations/JsonSchemaBool.java | 20 +--- .../annotations/JsonSchemaDefault.java | 20 +--- .../annotations/JsonSchemaDescription.java | 20 +--- .../annotations/JsonSchemaExamples.java | 20 +--- .../annotations/JsonSchemaFormat.java | 20 +--- .../annotations/JsonSchemaInject.java | 20 +--- .../jsonSchema/annotations/JsonSchemaInt.java | 20 +--- .../annotations/JsonSchemaOptions.java | 20 +--- .../annotations/JsonSchemaString.java | 20 +--- .../annotations/JsonSchemaTitle.java | 20 +--- frontend/src/app/common/formly/array.type.ts | 23 +--- project/plugins.sbt | 3 + .../src/language-server-runner.ts | 23 +--- pyright-language-service/src/main.ts | 23 +--- .../src/server-commons.ts | 23 +--- 20 files changed, 196 insertions(+), 267 deletions(-) diff --git a/.licenserc.yaml b/.licenserc.yaml index fed8faf136e..57e9da64bdc 100644 --- a/.licenserc.yaml +++ b/.licenserc.yaml @@ -26,3 +26,9 @@ header: - '.licenserc.yaml' - 'frontend/.yarn/**' - 'amber/src/main/python/proto/**' + # Third-party code with MIT license - see LICENSE file for attribution + - 'pyright-language-service/src/main.ts' + - 'pyright-language-service/src/language-server-runner.ts' + - 'pyright-language-service/src/server-commons.ts' + - 'common/workflow-operator/src/main/scala/com/kjetland/**' + - 'frontend/src/app/common/formly/array.type.ts' diff --git a/LICENSE b/LICENSE index 261eeb9e9f8..62711d245a1 100644 --- a/LICENSE +++ b/LICENSE @@ -199,3 +199,107 @@ 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. + +-------------------------------------------------------------------------------- +THIRD-PARTY DEPENDENCIES +-------------------------------------------------------------------------------- + +This product bundles source code from third-party projects. The following +sections list these bundled dependencies and their licenses. + +================================================================================ +monaco-languageclient (MIT License) +================================================================================ + +The following files are derived from monaco-languageclient by TypeFox: + - pyright-language-service/src/language-server-runner.ts + - pyright-language-service/src/server-commons.ts + - pyright-language-service/src/main.ts + +Source: https://github.com/TypeFox/monaco-languageclient + +Copyright (c) 2024 TypeFox and others. + +MIT License + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +================================================================================ +mbknor-jackson-jsonschema (MIT License) +================================================================================ + +The following files are derived from mbknor-jackson-jsonschema: + - common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/JsonSchemaGenerator.scala + - common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/JsonSchemaDraft.java + - common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/annotations/*.java + +Source: https://github.com/mbknor/mbknor-jackson-jsonschema + +Copyright (c) 2016 Kjell Tore Eliassen (mbknor) + +MIT License + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +================================================================================ +Angular (MIT License) +================================================================================ + +The following file contains code derived from Angular examples: + - frontend/src/app/common/formly/array.type.ts + +Source: https://angular.io + +Copyright (c) 2018 Google Inc. All Rights Reserved. + +MIT License + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/JsonSchemaDraft.java b/common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/JsonSchemaDraft.java index 4a75e2f44c4..60f3a6d0b1e 100644 --- a/common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/JsonSchemaDraft.java +++ b/common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/JsonSchemaDraft.java @@ -1,20 +1,9 @@ /* - * 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 + * Copyright (c) 2016 Kjell Tore Eliassen (mbknor) + * Licensed under the MIT License. * - * http://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. + * This file is derived from mbknor-jackson-jsonschema. + * Source: https://github.com/mbknor/mbknor-jackson-jsonschema */ package com.kjetland.jackson.jsonSchema; diff --git a/common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/JsonSchemaGenerator.scala b/common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/JsonSchemaGenerator.scala index 69bf1c11963..395de278997 100644 --- a/common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/JsonSchemaGenerator.scala +++ b/common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/JsonSchemaGenerator.scala @@ -1,20 +1,9 @@ /* - * 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 + * Copyright (c) 2016 Kjell Tore Eliassen (mbknor) + * Licensed under the MIT License. * - * http://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. + * This file is derived from mbknor-jackson-jsonschema. + * Source: https://github.com/mbknor/mbknor-jackson-jsonschema */ package com.kjetland.jackson.jsonSchema diff --git a/common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/annotations/JsonSchemaArrayWithUniqueItems.java b/common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/annotations/JsonSchemaArrayWithUniqueItems.java index 1e5d8d231a3..752424cde99 100644 --- a/common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/annotations/JsonSchemaArrayWithUniqueItems.java +++ b/common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/annotations/JsonSchemaArrayWithUniqueItems.java @@ -1,22 +1,12 @@ /* - * 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 + * Copyright (c) 2016 Kjell Tore Eliassen (mbknor) + * Licensed under the MIT License. * - * http://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. + * This file is derived from mbknor-jackson-jsonschema. + * Source: https://github.com/mbknor/mbknor-jackson-jsonschema */ + package com.kjetland.jackson.jsonSchema.annotations; import java.lang.annotation.Retention; diff --git a/common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/annotations/JsonSchemaBool.java b/common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/annotations/JsonSchemaBool.java index 384651567b4..176b0d2be66 100644 --- a/common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/annotations/JsonSchemaBool.java +++ b/common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/annotations/JsonSchemaBool.java @@ -1,22 +1,12 @@ /* - * 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 + * Copyright (c) 2016 Kjell Tore Eliassen (mbknor) + * Licensed under the MIT License. * - * http://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. + * This file is derived from mbknor-jackson-jsonschema. + * Source: https://github.com/mbknor/mbknor-jackson-jsonschema */ + package com.kjetland.jackson.jsonSchema.annotations; import java.lang.annotation.Retention; diff --git a/common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/annotations/JsonSchemaDefault.java b/common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/annotations/JsonSchemaDefault.java index f03682ff64b..b6f15ab751e 100644 --- a/common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/annotations/JsonSchemaDefault.java +++ b/common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/annotations/JsonSchemaDefault.java @@ -1,22 +1,12 @@ /* - * 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 + * Copyright (c) 2016 Kjell Tore Eliassen (mbknor) + * Licensed under the MIT License. * - * http://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. + * This file is derived from mbknor-jackson-jsonschema. + * Source: https://github.com/mbknor/mbknor-jackson-jsonschema */ + package com.kjetland.jackson.jsonSchema.annotations; import java.lang.annotation.Retention; diff --git a/common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/annotations/JsonSchemaDescription.java b/common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/annotations/JsonSchemaDescription.java index 59a01ec2ec5..6aca3afec48 100644 --- a/common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/annotations/JsonSchemaDescription.java +++ b/common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/annotations/JsonSchemaDescription.java @@ -1,22 +1,12 @@ /* - * 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 + * Copyright (c) 2016 Kjell Tore Eliassen (mbknor) + * Licensed under the MIT License. * - * http://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. + * This file is derived from mbknor-jackson-jsonschema. + * Source: https://github.com/mbknor/mbknor-jackson-jsonschema */ + package com.kjetland.jackson.jsonSchema.annotations; import java.lang.annotation.Retention; diff --git a/common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/annotations/JsonSchemaExamples.java b/common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/annotations/JsonSchemaExamples.java index b7a56eea9e8..e955bbe05af 100644 --- a/common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/annotations/JsonSchemaExamples.java +++ b/common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/annotations/JsonSchemaExamples.java @@ -1,22 +1,12 @@ /* - * 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 + * Copyright (c) 2016 Kjell Tore Eliassen (mbknor) + * Licensed under the MIT License. * - * http://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. + * This file is derived from mbknor-jackson-jsonschema. + * Source: https://github.com/mbknor/mbknor-jackson-jsonschema */ + package com.kjetland.jackson.jsonSchema.annotations; import java.lang.annotation.Retention; diff --git a/common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/annotations/JsonSchemaFormat.java b/common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/annotations/JsonSchemaFormat.java index 67fc164a360..0864f6cafcd 100644 --- a/common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/annotations/JsonSchemaFormat.java +++ b/common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/annotations/JsonSchemaFormat.java @@ -1,22 +1,12 @@ /* - * 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 + * Copyright (c) 2016 Kjell Tore Eliassen (mbknor) + * Licensed under the MIT License. * - * http://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. + * This file is derived from mbknor-jackson-jsonschema. + * Source: https://github.com/mbknor/mbknor-jackson-jsonschema */ + package com.kjetland.jackson.jsonSchema.annotations; import java.lang.annotation.Retention; diff --git a/common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/annotations/JsonSchemaInject.java b/common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/annotations/JsonSchemaInject.java index af8932bfa93..3b2df70eac8 100644 --- a/common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/annotations/JsonSchemaInject.java +++ b/common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/annotations/JsonSchemaInject.java @@ -1,22 +1,12 @@ /* - * 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 + * Copyright (c) 2016 Kjell Tore Eliassen (mbknor) + * Licensed under the MIT License. * - * http://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. + * This file is derived from mbknor-jackson-jsonschema. + * Source: https://github.com/mbknor/mbknor-jackson-jsonschema */ + package com.kjetland.jackson.jsonSchema.annotations; import com.fasterxml.jackson.databind.JsonNode; diff --git a/common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/annotations/JsonSchemaInt.java b/common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/annotations/JsonSchemaInt.java index 95e93304f78..b356cba7009 100644 --- a/common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/annotations/JsonSchemaInt.java +++ b/common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/annotations/JsonSchemaInt.java @@ -1,22 +1,12 @@ /* - * 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 + * Copyright (c) 2016 Kjell Tore Eliassen (mbknor) + * Licensed under the MIT License. * - * http://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. + * This file is derived from mbknor-jackson-jsonschema. + * Source: https://github.com/mbknor/mbknor-jackson-jsonschema */ + package com.kjetland.jackson.jsonSchema.annotations; import java.lang.annotation.Retention; diff --git a/common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/annotations/JsonSchemaOptions.java b/common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/annotations/JsonSchemaOptions.java index 188bc9d0f18..75f3b4a7052 100644 --- a/common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/annotations/JsonSchemaOptions.java +++ b/common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/annotations/JsonSchemaOptions.java @@ -1,22 +1,12 @@ /* - * 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 + * Copyright (c) 2016 Kjell Tore Eliassen (mbknor) + * Licensed under the MIT License. * - * http://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. + * This file is derived from mbknor-jackson-jsonschema. + * Source: https://github.com/mbknor/mbknor-jackson-jsonschema */ + package com.kjetland.jackson.jsonSchema.annotations; import java.lang.annotation.Retention; diff --git a/common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/annotations/JsonSchemaString.java b/common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/annotations/JsonSchemaString.java index db9587e36e7..97052da15e1 100644 --- a/common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/annotations/JsonSchemaString.java +++ b/common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/annotations/JsonSchemaString.java @@ -1,22 +1,12 @@ /* - * 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 + * Copyright (c) 2016 Kjell Tore Eliassen (mbknor) + * Licensed under the MIT License. * - * http://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. + * This file is derived from mbknor-jackson-jsonschema. + * Source: https://github.com/mbknor/mbknor-jackson-jsonschema */ + package com.kjetland.jackson.jsonSchema.annotations; import java.lang.annotation.Retention; diff --git a/common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/annotations/JsonSchemaTitle.java b/common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/annotations/JsonSchemaTitle.java index a31002bc1c0..031df809c8f 100644 --- a/common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/annotations/JsonSchemaTitle.java +++ b/common/workflow-operator/src/main/scala/com/kjetland/jackson/jsonSchema/annotations/JsonSchemaTitle.java @@ -1,22 +1,12 @@ /* - * 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 + * Copyright (c) 2016 Kjell Tore Eliassen (mbknor) + * Licensed under the MIT License. * - * http://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. + * This file is derived from mbknor-jackson-jsonschema. + * Source: https://github.com/mbknor/mbknor-jackson-jsonschema */ + package com.kjetland.jackson.jsonSchema.annotations; import java.lang.annotation.Retention; diff --git a/frontend/src/app/common/formly/array.type.ts b/frontend/src/app/common/formly/array.type.ts index 5f4bf66455f..9306d43ff77 100644 --- a/frontend/src/app/common/formly/array.type.ts +++ b/frontend/src/app/common/formly/array.type.ts @@ -1,20 +1,10 @@ /** - * 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 + * Copyright 2018 Google Inc. All Rights Reserved. + * Use of this source code is governed by an MIT-style license that + * can be found in the LICENSE file at http://angular.io/license * - * http://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. + * This file is derived from Angular examples. + * Source: https://angular.io */ import { Component } from "@angular/core"; @@ -59,6 +49,3 @@ import { FieldArrayType } from "@ngx-formly/core"; `, }) export class ArrayTypeComponent extends FieldArrayType {} -/** Copyright 2018 Google Inc. All Rights Reserved. - Use of this source code is governed by an MIT-style license that - can be found in the LICENSE file at http://angular.io/license */ diff --git a/project/plugins.sbt b/project/plugins.sbt index 10ff0786895..0e91da0ef84 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -17,6 +17,9 @@ addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.2") addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.11.0") +// License reporting for dependency compliance auditing +// See: https://github.com/sbt/sbt-license-report +addSbtPlugin("com.github.sbt" % "sbt-license-report" % "1.7.0") libraryDependencies += "com.thesamet.scalapb" %% "compilerplugin" % "0.11.1" addSbtPlugin("com.github.sbt" % "sbt-native-packager" % "1.11.1") diff --git a/pyright-language-service/src/language-server-runner.ts b/pyright-language-service/src/language-server-runner.ts index 9773c7cc8d2..7a36e8dea95 100644 --- a/pyright-language-service/src/language-server-runner.ts +++ b/pyright-language-service/src/language-server-runner.ts @@ -1,21 +1,8 @@ -/** - * 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 - * - * http://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. - */ +/* -------------------------------------------------------------------------------------------- + * Copyright (c) 2024 TypeFox and others. + * Licensed under the MIT License. See LICENSE in the package root for license information. + * ------------------------------------------------------------------------------------------ */ +// This file is derived from: https://github.com/TypeFox/monaco-languageclient/blob/main/packages/examples/src/common/node/language-server-runner.ts import {WebSocketServer} from "ws"; import {Server} from 'node:http'; diff --git a/pyright-language-service/src/main.ts b/pyright-language-service/src/main.ts index 8cd21134d80..284fdadb7d7 100644 --- a/pyright-language-service/src/main.ts +++ b/pyright-language-service/src/main.ts @@ -1,21 +1,8 @@ -/** - * 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 - * - * http://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. - */ +/* -------------------------------------------------------------------------------------------- + * Copyright (c) 2024 TypeFox and others. + * Licensed under the MIT License. See LICENSE in the package root for license information. + * ------------------------------------------------------------------------------------------ */ +// This file is derived from: https://github.com/TypeFox/monaco-languageclient/blob/main/packages/examples/src/python/server/main.ts import {dirname, resolve} from "node:path"; import {runLanguageServer} from "./language-server-runner.ts"; diff --git a/pyright-language-service/src/server-commons.ts b/pyright-language-service/src/server-commons.ts index 5ef2e6f0edf..1a942d00c0d 100644 --- a/pyright-language-service/src/server-commons.ts +++ b/pyright-language-service/src/server-commons.ts @@ -1,21 +1,8 @@ -/** - * 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 - * - * http://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. - */ +/* -------------------------------------------------------------------------------------------- + * Copyright (c) 2024 TypeFox and others. + * Licensed under the MIT License. See LICENSE in the package root for license information. + * ------------------------------------------------------------------------------------------ */ +// This file is derived from: https://github.com/TypeFox/monaco-languageclient/blob/main/packages/examples/src/common/node/server-commons.ts import {ServerOptions, WebSocketServer} from "ws"; import {IncomingMessage, Server} from "node:http"; From 821a4127cf6c35122410d579e911aab4815d2f60 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 17 Dec 2025 12:54:30 +0000 Subject: [PATCH 2/2] fix: remove pyright changes (handled by PR #4132) Remove pyright-language-service license header changes as they are already addressed in PR #4132. This commit now focuses only on: - mbknor-jackson-jsonschema (MIT license attribution) - Angular array.type.ts (MIT license attribution) - sbt-license-report plugin for dependency tracking --- .licenserc.yaml | 3 -- LICENSE | 33 ------------------- .../src/language-server-runner.ts | 23 ++++++++++--- pyright-language-service/src/main.ts | 23 ++++++++++--- .../src/server-commons.ts | 23 ++++++++++--- 5 files changed, 54 insertions(+), 51 deletions(-) diff --git a/.licenserc.yaml b/.licenserc.yaml index 57e9da64bdc..7285e6e130b 100644 --- a/.licenserc.yaml +++ b/.licenserc.yaml @@ -27,8 +27,5 @@ header: - 'frontend/.yarn/**' - 'amber/src/main/python/proto/**' # Third-party code with MIT license - see LICENSE file for attribution - - 'pyright-language-service/src/main.ts' - - 'pyright-language-service/src/language-server-runner.ts' - - 'pyright-language-service/src/server-commons.ts' - 'common/workflow-operator/src/main/scala/com/kjetland/**' - 'frontend/src/app/common/formly/array.type.ts' diff --git a/LICENSE b/LICENSE index 62711d245a1..9c0cabf7e10 100644 --- a/LICENSE +++ b/LICENSE @@ -207,39 +207,6 @@ THIRD-PARTY DEPENDENCIES This product bundles source code from third-party projects. The following sections list these bundled dependencies and their licenses. -================================================================================ -monaco-languageclient (MIT License) -================================================================================ - -The following files are derived from monaco-languageclient by TypeFox: - - pyright-language-service/src/language-server-runner.ts - - pyright-language-service/src/server-commons.ts - - pyright-language-service/src/main.ts - -Source: https://github.com/TypeFox/monaco-languageclient - -Copyright (c) 2024 TypeFox and others. - -MIT License - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - ================================================================================ mbknor-jackson-jsonschema (MIT License) ================================================================================ diff --git a/pyright-language-service/src/language-server-runner.ts b/pyright-language-service/src/language-server-runner.ts index 7a36e8dea95..9773c7cc8d2 100644 --- a/pyright-language-service/src/language-server-runner.ts +++ b/pyright-language-service/src/language-server-runner.ts @@ -1,8 +1,21 @@ -/* -------------------------------------------------------------------------------------------- - * Copyright (c) 2024 TypeFox and others. - * Licensed under the MIT License. See LICENSE in the package root for license information. - * ------------------------------------------------------------------------------------------ */ -// This file is derived from: https://github.com/TypeFox/monaco-languageclient/blob/main/packages/examples/src/common/node/language-server-runner.ts +/** + * 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 + * + * http://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. + */ import {WebSocketServer} from "ws"; import {Server} from 'node:http'; diff --git a/pyright-language-service/src/main.ts b/pyright-language-service/src/main.ts index 284fdadb7d7..8cd21134d80 100644 --- a/pyright-language-service/src/main.ts +++ b/pyright-language-service/src/main.ts @@ -1,8 +1,21 @@ -/* -------------------------------------------------------------------------------------------- - * Copyright (c) 2024 TypeFox and others. - * Licensed under the MIT License. See LICENSE in the package root for license information. - * ------------------------------------------------------------------------------------------ */ -// This file is derived from: https://github.com/TypeFox/monaco-languageclient/blob/main/packages/examples/src/python/server/main.ts +/** + * 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 + * + * http://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. + */ import {dirname, resolve} from "node:path"; import {runLanguageServer} from "./language-server-runner.ts"; diff --git a/pyright-language-service/src/server-commons.ts b/pyright-language-service/src/server-commons.ts index 1a942d00c0d..5ef2e6f0edf 100644 --- a/pyright-language-service/src/server-commons.ts +++ b/pyright-language-service/src/server-commons.ts @@ -1,8 +1,21 @@ -/* -------------------------------------------------------------------------------------------- - * Copyright (c) 2024 TypeFox and others. - * Licensed under the MIT License. See LICENSE in the package root for license information. - * ------------------------------------------------------------------------------------------ */ -// This file is derived from: https://github.com/TypeFox/monaco-languageclient/blob/main/packages/examples/src/common/node/server-commons.ts +/** + * 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 + * + * http://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. + */ import {ServerOptions, WebSocketServer} from "ws"; import {IncomingMessage, Server} from "node:http";