#
# 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.
#

header:
  license:
    spdx-id: Apache-2.0
    copyright-owner: Apache Software Foundation
    content: |
      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.

  paths-ignore:
    - '.gitignore'
    - '*.md'
    - 'LICENSE'
    - 'NOTICE'
    - 'DISCLAIMER'
    - '**/*.md'
    - '.github/**'
    - '**/target/**'
    - '**/*.iml'
    - 'changes/**'
    - 'style/**'
    - 'sessionStore/**'
    - 'test/src/test/resources/**'
    - 'saga/seata-saga-statemachine-designer/node_modules/**'
    - 'node_modules/**'
    - 'saga/seata-saga-statemachine-designer/**'
    - '**/src/test/resources/statelang/**'
    - 'console/src/main/resources/static/console-fe/**'
    - '**/org/apache/seata/sqlparser/antlr/**/*.g4'
    - '**/org/apache/seata/sqlparser/antlr/mysql/parser/*'
    - '**/integration/**/*.proto'
    - 'console/src/main/resources/static/**'
    - 'ext/apm-seata-skywalking-plugin/config/agent.config'
    - 'server/src/main/resources/lua/redislocker/redislock.lua'
    - 'server/src/main/resources/banner.txt'
    - '**/*.json'
  comment: on-failure
dependency:
  files:
    - pom.xml
    - saga/seata-saga-statemachine-designer/package.json
    - console/src/main/resources/static/console-fe/package.json
  excludes:
    - name: org.apache.seata:*
      recursive: false
    # exclude manually confirmed license
    # BSD-3-Clause https://www.npmjs.com/package/universal-canvas-context
    - name: universal-canvas-context
      recursive: false
    # BSD-3-Clause https://www.npmjs.com/package/universal-element
    - name: universal-element
      recursive: false
    # remove later https://www.npmjs.com/package/@gcanvas/core
    - name: "@gcanvas/core"
      recursive: true
    # remove later https://www.npmjs.com/package/universal-env
    - name: universal-env
      recursive: true