From 13deea8905a51b9d46e505f67d271ac6d1cd1c99 Mon Sep 17 00:00:00 2001 From: jimin Date: Wed, 7 Sep 2022 16:06:56 +0800 Subject: [PATCH] optimize: add license checker workflow (#4911) --- .github/workflows/license-checker.yaml | 27 ++++++ .licenserc.yaml | 85 +++++++++++++++++++ .../src/main/resources/file.conf | 13 +++ .../src/main/resources/registry.conf | 13 +++ .../src/test/resources/file-test-pro.conf | 13 +++ .../src/test/resources/file-test-yaml.conf | 13 +++ .../src/test/resources/file-test.conf | 13 +++ .../src/test/resources/file.conf | 13 +++ .../resources/registry-test-pro.properties | 1 - .../src/test/resources/registry-test-yaml.yml | 14 +++ .../src/test/resources/registry-test.conf | 13 +++ .../src/test/resources/registry.conf | 13 +++ .../src/test/resources/registry.conf | 14 +++ config/seata-config-spring-cloud/pom.xml | 15 ++++ console/pom.xml | 15 ++++ .../src/test/resources/registry.conf | 14 +++ distribution/Dockerfile | 16 +++- .../src/main/resources/skywalking-plugin.def | 24 +++--- integration/brpc/pom.xml | 16 +++- .../src/test/resources/logback-test.xml | 16 +++- script/client/conf/file.conf | 14 +++ script/client/conf/registry.conf | 14 +++ script/logstash/config/logstash-kafka.conf | 14 +++ script/logstash/config/logstash-logback.conf | 14 +++ .../seata-spring-autoconfigure-client/pom.xml | 16 ++++ .../seata-spring-autoconfigure-core/pom.xml | 16 ++++ .../resources/application-test.properties | 14 ++- .../seata-spring-autoconfigure-server/pom.xml | 16 ++++ serializer/seata-serializer-kryo/pom.xml | 16 ++++ .../src/test/resources/file.conf | 14 +++ .../src/test/resources/registry.conf | 14 +++ .../main/resources/application.example.yml | 14 +++ server/src/main/resources/application.yml | 14 +++ .../resources/logback/console-appender.xml | 16 ++++ .../main/resources/logback/file-appender.xml | 16 ++++ .../main/resources/logback/kafka-appender.xml | 16 ++++ .../resources/logback/logstash-appender.xml | 16 ++++ .../server/metrics/RegistryMeterKeyTest.java | 15 ++++ server/src/test/resources/file.conf | 14 +++ server/src/test/resources/registry.conf | 14 +++ tcc/{README.MD => README.md} | 12 +-- test/src/test/resources/file.conf | 14 +++ test/src/test/resources/registry.conf | 14 +++ 43 files changed, 674 insertions(+), 24 deletions(-) create mode 100644 .github/workflows/license-checker.yaml create mode 100644 .licenserc.yaml rename tcc/{README.MD => README.md} (93%) diff --git a/.github/workflows/license-checker.yaml b/.github/workflows/license-checker.yaml new file mode 100644 index 00000000000..b8f2f36540f --- /dev/null +++ b/.github/workflows/license-checker.yaml @@ -0,0 +1,27 @@ +name: License checker + +on: + pull_request: + branches: [ develop, master ] + +jobs: + check-license: + runs-on: ubuntu-latest + steps: + # step 1 + - name: Checkout + uses: actions/checkout@v2.4.0 + # step 2 + - name: Check License Header + uses: apache/skywalking-eyes/header@v0.4.0 + with: + log: info + config: .licenserc.yaml + mode: check + # step 3 + - name: Check Dependencies' License + uses: apache/skywalking-eyes/dependency@v0.4.0 + with: + log: info + config: .licenserc.yaml + mode: check \ No newline at end of file diff --git a/.licenserc.yaml b/.licenserc.yaml new file mode 100644 index 00000000000..b7e761e9ddc --- /dev/null +++ b/.licenserc.yaml @@ -0,0 +1,85 @@ +# +# Copyright 1999-2019 Seata.io Group. +# +# Licensed 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: Seata.io + content: | + Copyright 1999-2019 Seata.io Group. + + Licensed 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' + - '.gitattributes' + - '.travis.yml' + - 'codecov.yml' + - 'CONTRIBUTING.md' + - 'CONTRIBUTING_CN.md' + - 'CODE_OF_CONDUCT.md' + - 'README.md' + - 'LICENSE' + - 'NOTICE' + - '**/*.md' + - '.github/**' + #SPI、spring.factories、spring-configuration-metadata.json、additional-spring-configuration-metadata.json + - '**/src/test/resources/META-INF/**' + - '**/src/main/resources/META-INF/**' + - '**/target/**' + - '**/*.iml' + - 'mvnw' + - 'mvnw.cmd' + - '*.sh' + - 'changes/**' + - 'style/**' + - 'script/**' + - 'seata-plugins/**' + - '.mvn/**' + - 'sessionStore/**' + - 'distribution/LICENSE-BIN' + - 'distribution/NOTICE-BIN' + - 'test/src/test/resources/**' + - 'serializer/seata-serializer-protobuf/src/main/resources/protobuf/io/seata/protocol/transcation/*.proto' + - '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/**' + - '**/io/seata/sqlparser/antlr/**/*.g4' + - '**/io/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' + + + comment: on-failure +dependency: + files: + - pom.xml + - package.json + excludes: + - name: io.seata:* \ No newline at end of file diff --git a/config/seata-config-core/src/main/resources/file.conf b/config/seata-config-core/src/main/resources/file.conf index cfc76510933..a06899c4a03 100644 --- a/config/seata-config-core/src/main/resources/file.conf +++ b/config/seata-config-core/src/main/resources/file.conf @@ -1,3 +1,16 @@ + # Copyright 1999-2019 Seata.io Group. + # + # Licensed 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. service { #transaction service group mapping vgroupMapping.default_tx_group = "default" diff --git a/config/seata-config-core/src/main/resources/registry.conf b/config/seata-config-core/src/main/resources/registry.conf index b371c46d153..668de350e05 100644 --- a/config/seata-config-core/src/main/resources/registry.conf +++ b/config/seata-config-core/src/main/resources/registry.conf @@ -1,3 +1,16 @@ +# Copyright 1999-2019 Seata.io Group. +# +# Licensed 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. registry { # file 、nacos 、eureka、redis、zk、consul、etcd3、sofa type = "file" diff --git a/config/seata-config-core/src/test/resources/file-test-pro.conf b/config/seata-config-core/src/test/resources/file-test-pro.conf index 4e848ad0723..4021e9fa6c6 100644 --- a/config/seata-config-core/src/test/resources/file-test-pro.conf +++ b/config/seata-config-core/src/test/resources/file-test-pro.conf @@ -1,3 +1,16 @@ +# Copyright 1999-2019 Seata.io Group. +# +# Licensed 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. service { #transaction service group mapping vgroupMapping.default_tx_group = "default" diff --git a/config/seata-config-core/src/test/resources/file-test-yaml.conf b/config/seata-config-core/src/test/resources/file-test-yaml.conf index bcbd18c17f5..7b09a07678c 100644 --- a/config/seata-config-core/src/test/resources/file-test-yaml.conf +++ b/config/seata-config-core/src/test/resources/file-test-yaml.conf @@ -1,3 +1,16 @@ +# Copyright 1999-2019 Seata.io Group. +# +# Licensed 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. service { #transaction service group mapping vgroupMapping.default_tx_group = "default" diff --git a/config/seata-config-core/src/test/resources/file-test.conf b/config/seata-config-core/src/test/resources/file-test.conf index 1bbe3623d39..e25741273fd 100644 --- a/config/seata-config-core/src/test/resources/file-test.conf +++ b/config/seata-config-core/src/test/resources/file-test.conf @@ -1,3 +1,16 @@ +# Copyright 1999-2019 Seata.io Group. +# +# Licensed 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. service { #transaction service group mapping vgroupMapping.default_tx_group = "default" diff --git a/config/seata-config-core/src/test/resources/file.conf b/config/seata-config-core/src/test/resources/file.conf index cfc76510933..606e3609985 100644 --- a/config/seata-config-core/src/test/resources/file.conf +++ b/config/seata-config-core/src/test/resources/file.conf @@ -1,3 +1,16 @@ +# Copyright 1999-2019 Seata.io Group. +# +# Licensed 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. service { #transaction service group mapping vgroupMapping.default_tx_group = "default" diff --git a/config/seata-config-core/src/test/resources/registry-test-pro.properties b/config/seata-config-core/src/test/resources/registry-test-pro.properties index 337cb27678e..04210855407 100644 --- a/config/seata-config-core/src/test/resources/registry-test-pro.properties +++ b/config/seata-config-core/src/test/resources/registry-test-pro.properties @@ -1,4 +1,3 @@ - #Copyright 1999-2019 Seata.io Group. # #Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/config/seata-config-core/src/test/resources/registry-test-yaml.yml b/config/seata-config-core/src/test/resources/registry-test-yaml.yml index df749326afb..7cbf95ba7d5 100644 --- a/config/seata-config-core/src/test/resources/registry-test-yaml.yml +++ b/config/seata-config-core/src/test/resources/registry-test-yaml.yml @@ -1,3 +1,17 @@ +# Copyright 1999-2019 Seata.io Group. +# +# Licensed 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. + registry: type: file file: diff --git a/config/seata-config-core/src/test/resources/registry-test.conf b/config/seata-config-core/src/test/resources/registry-test.conf index efe9f48c8ba..e64ccc18b20 100644 --- a/config/seata-config-core/src/test/resources/registry-test.conf +++ b/config/seata-config-core/src/test/resources/registry-test.conf @@ -1,3 +1,16 @@ +# Copyright 1999-2019 Seata.io Group. +# +# Licensed 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. registry { # file 、nacos 、eureka、redis、zk、consul、etcd3、sofa type = "file" diff --git a/config/seata-config-core/src/test/resources/registry.conf b/config/seata-config-core/src/test/resources/registry.conf index 0a9bfecd757..d928c9b14ca 100644 --- a/config/seata-config-core/src/test/resources/registry.conf +++ b/config/seata-config-core/src/test/resources/registry.conf @@ -1,3 +1,16 @@ +# Copyright 1999-2019 Seata.io Group. +# +# Licensed 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. registry { # file 、nacos 、eureka、redis、zk、consul、etcd3、sofa type = "file" diff --git a/config/seata-config-custom/src/test/resources/registry.conf b/config/seata-config-custom/src/test/resources/registry.conf index 8e39de9a8ae..feb948c0324 100644 --- a/config/seata-config-custom/src/test/resources/registry.conf +++ b/config/seata-config-custom/src/test/resources/registry.conf @@ -1,3 +1,17 @@ +# Copyright 1999-2019 Seata.io Group. +# +# Licensed 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. + config { type = "custom" diff --git a/config/seata-config-spring-cloud/pom.xml b/config/seata-config-spring-cloud/pom.xml index 09ea8a9868d..d3e79010a7e 100644 --- a/config/seata-config-spring-cloud/pom.xml +++ b/config/seata-config-spring-cloud/pom.xml @@ -1,4 +1,19 @@ + diff --git a/console/pom.xml b/console/pom.xml index 90865843ad6..4e70c7e7b0f 100644 --- a/console/pom.xml +++ b/console/pom.xml @@ -1,4 +1,19 @@ + diff --git a/discovery/seata-discovery-custom/src/test/resources/registry.conf b/discovery/seata-discovery-custom/src/test/resources/registry.conf index beef5ee2f5a..d09de33c07a 100644 --- a/discovery/seata-discovery-custom/src/test/resources/registry.conf +++ b/discovery/seata-discovery-custom/src/test/resources/registry.conf @@ -1,3 +1,17 @@ +# Copyright 1999-2019 Seata.io Group. +# +# Licensed 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. + registry { type = "custom" diff --git a/distribution/Dockerfile b/distribution/Dockerfile index c2bba3d4d10..e5846d9da17 100644 --- a/distribution/Dockerfile +++ b/distribution/Dockerfile @@ -1,5 +1,19 @@ -# the Dockerfile support x86 & arrch64 +# Copyright 1999-2019 Seata.io Group. +# +# Licensed 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. +# the Dockerfile support x86 & arrch64 + + # build: # 1. mvn -Prelease-seata -Dmaven.test.skip=true clean install -U # 2. cd distribution/target/seata-server-xxx/seata/ diff --git a/ext/apm-seata-skywalking-plugin/src/main/resources/skywalking-plugin.def b/ext/apm-seata-skywalking-plugin/src/main/resources/skywalking-plugin.def index 532a55e60b5..3af556cc3d1 100644 --- a/ext/apm-seata-skywalking-plugin/src/main/resources/skywalking-plugin.def +++ b/ext/apm-seata-skywalking-plugin/src/main/resources/skywalking-plugin.def @@ -1,18 +1,16 @@ -# 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 1999-2019 Seata.io Group. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Licensed 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 # -# 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. +# 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. seata=io.seata.apm.skywalking.plugin.define.AbstractNettyRemotingInstrumentation seata=io.seata.apm.skywalking.plugin.define.DefaultCoreInstrumentation diff --git a/integration/brpc/pom.xml b/integration/brpc/pom.xml index 4df716d8c21..2c8beac0fb2 100644 --- a/integration/brpc/pom.xml +++ b/integration/brpc/pom.xml @@ -1,5 +1,19 @@ - + diff --git a/saga/seata-saga-statelang/src/test/resources/logback-test.xml b/saga/seata-saga-statelang/src/test/resources/logback-test.xml index 3e0c6d81dd2..43d49129c49 100644 --- a/saga/seata-saga-statelang/src/test/resources/logback-test.xml +++ b/saga/seata-saga-statelang/src/test/resources/logback-test.xml @@ -1,5 +1,19 @@ - + diff --git a/script/client/conf/file.conf b/script/client/conf/file.conf index 90536dcf00e..69c67c58916 100644 --- a/script/client/conf/file.conf +++ b/script/client/conf/file.conf @@ -1,3 +1,17 @@ +# Copyright 1999-2019 Seata.io Group. +# +# Licensed 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. + transport { # tcp, unix-domain-socket type = "TCP" diff --git a/script/client/conf/registry.conf b/script/client/conf/registry.conf index 04e2ba5f59f..4ce7ed626e1 100644 --- a/script/client/conf/registry.conf +++ b/script/client/conf/registry.conf @@ -1,3 +1,17 @@ +# Copyright 1999-2019 Seata.io Group. +# +# Licensed 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. + registry { # file 、nacos 、eureka、redis、zk、consul、etcd3、sofa、custom type = "file" diff --git a/script/logstash/config/logstash-kafka.conf b/script/logstash/config/logstash-kafka.conf index 4bb5bd1ada7..8423163b0d9 100644 --- a/script/logstash/config/logstash-kafka.conf +++ b/script/logstash/config/logstash-kafka.conf @@ -1,3 +1,17 @@ +# Copyright 1999-2019 Seata.io Group. +# +# Licensed 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. + # App(Logback KafkaAppender) -> Kafka -> Logstash -> Elasticsearch pipeline. input { diff --git a/script/logstash/config/logstash-logback.conf b/script/logstash/config/logstash-logback.conf index eec1fb6c273..340f150d432 100644 --- a/script/logstash/config/logstash-logback.conf +++ b/script/logstash/config/logstash-logback.conf @@ -1,3 +1,17 @@ +# Copyright 1999-2019 Seata.io Group. +# +# Licensed 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. + # App(Logback LogstashTcpSocketAppender) -> Logstash -> Elasticsearch pipeline. input { diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-client/pom.xml b/seata-spring-autoconfigure/seata-spring-autoconfigure-client/pom.xml index 1f21577dfe3..9699ee1984d 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-client/pom.xml +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-client/pom.xml @@ -1,4 +1,20 @@ + + diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/pom.xml b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/pom.xml index d5c94ff3fb8..c69dbcea8bf 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/pom.xml +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/pom.xml @@ -1,4 +1,20 @@ + + diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/test/resources/application-test.properties b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/test/resources/application-test.properties index eb1cadff1f2..78094f18c83 100755 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/test/resources/application-test.properties +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/test/resources/application-test.properties @@ -1,4 +1,16 @@ - +# Copyright 1999-2019 Seata.io Group. +# +# Licensed 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. seata.config.type=aaa seata.config.data-type=bbb seata.config.file.name=aaa diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-server/pom.xml b/seata-spring-autoconfigure/seata-spring-autoconfigure-server/pom.xml index c0ad586d1c7..46c7d5909c3 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-server/pom.xml +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-server/pom.xml @@ -1,4 +1,20 @@ + + diff --git a/serializer/seata-serializer-kryo/pom.xml b/serializer/seata-serializer-kryo/pom.xml index a5e3fc2df4a..395b0090e7b 100644 --- a/serializer/seata-serializer-kryo/pom.xml +++ b/serializer/seata-serializer-kryo/pom.xml @@ -1,4 +1,20 @@ + + diff --git a/serializer/seata-serializer-seata/src/test/resources/file.conf b/serializer/seata-serializer-seata/src/test/resources/file.conf index cfc76510933..9fa60fe0af5 100644 --- a/serializer/seata-serializer-seata/src/test/resources/file.conf +++ b/serializer/seata-serializer-seata/src/test/resources/file.conf @@ -1,3 +1,17 @@ +# Copyright 1999-2019 Seata.io Group. +# +# Licensed 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. + service { #transaction service group mapping vgroupMapping.default_tx_group = "default" diff --git a/serializer/seata-serializer-seata/src/test/resources/registry.conf b/serializer/seata-serializer-seata/src/test/resources/registry.conf index ed7b37965ba..c5d674ec60b 100644 --- a/serializer/seata-serializer-seata/src/test/resources/registry.conf +++ b/serializer/seata-serializer-seata/src/test/resources/registry.conf @@ -1,3 +1,17 @@ +# Copyright 1999-2019 Seata.io Group. +# +# Licensed 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. + registry { # file 、nacos 、eureka、redis、zk、consul、etcd3、sofa type = "file" diff --git a/server/src/main/resources/application.example.yml b/server/src/main/resources/application.example.yml index 4e9c8a227bd..586360a5b85 100644 --- a/server/src/main/resources/application.example.yml +++ b/server/src/main/resources/application.example.yml @@ -1,3 +1,17 @@ +# Copyright 1999-2019 Seata.io Group. +# +# Licensed 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. + server: port: 7091 diff --git a/server/src/main/resources/application.yml b/server/src/main/resources/application.yml index b7971f4a055..16822c55e18 100644 --- a/server/src/main/resources/application.yml +++ b/server/src/main/resources/application.yml @@ -1,3 +1,17 @@ +# Copyright 1999-2019 Seata.io Group. +# +# Licensed 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. + server: port: 7091 diff --git a/server/src/main/resources/logback/console-appender.xml b/server/src/main/resources/logback/console-appender.xml index e323f680416..e18e06823ad 100644 --- a/server/src/main/resources/logback/console-appender.xml +++ b/server/src/main/resources/logback/console-appender.xml @@ -1,4 +1,20 @@ + + + + + + + +