From 3d4e6f315f9613fb13d122a62b3e516d8fab1585 Mon Sep 17 00:00:00 2001 From: He Wang Date: Thu, 23 Dec 2021 18:00:38 +0800 Subject: [PATCH] add maven plugin to check license header (#14) * add rat plugin for license check * add missing license header * run rat in validate phase --- common/pom.xml | 11 ++++ .../common/packet/protocol/LogProxyProto.java | 10 ++++ .../common/packet/protocol/logproxy.proto | 10 ++++ logproxy-client/pom.xml | 11 ++++ pom.xml | 57 +++++++++++++++++++ scripts/protoc.sh | 11 ++++ 6 files changed, 110 insertions(+) diff --git a/common/pom.xml b/common/pom.xml index 8f4c150..afb0684 100644 --- a/common/pom.xml +++ b/common/pom.xml @@ -1,4 +1,15 @@ + 4.0.0 diff --git a/common/src/main/java/com/oceanbase/clogproxy/common/packet/protocol/LogProxyProto.java b/common/src/main/java/com/oceanbase/clogproxy/common/packet/protocol/LogProxyProto.java index 294185b..838b963 100644 --- a/common/src/main/java/com/oceanbase/clogproxy/common/packet/protocol/LogProxyProto.java +++ b/common/src/main/java/com/oceanbase/clogproxy/common/packet/protocol/LogProxyProto.java @@ -1,3 +1,13 @@ +/* Copyright (c) 2021 OceanBase and/or its affiliates. All rights reserved. +oblogclient is licensed under Mulan PSL v2. +You can use this software according to the terms and conditions of the Mulan PSL v2. +You may obtain a copy of Mulan PSL v2 at: + http://license.coscl.org.cn/MulanPSL2 +THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +See the Mulan PSL v2 for more details. */ + // Generated by the protocol buffer compiler. DO NOT EDIT! // source: common/src/main/java/com/oceanbase/clogproxy/common/packet/protocol/logproxy.proto diff --git a/common/src/main/java/com/oceanbase/clogproxy/common/packet/protocol/logproxy.proto b/common/src/main/java/com/oceanbase/clogproxy/common/packet/protocol/logproxy.proto index 236081f..fbef6df 100644 --- a/common/src/main/java/com/oceanbase/clogproxy/common/packet/protocol/logproxy.proto +++ b/common/src/main/java/com/oceanbase/clogproxy/common/packet/protocol/logproxy.proto @@ -1,3 +1,13 @@ +/* Copyright (c) 2021 OceanBase and/or its affiliates. All rights reserved. +oblogclient is licensed under Mulan PSL v2. +You can use this software according to the terms and conditions of the Mulan PSL v2. +You may obtain a copy of Mulan PSL v2 at: + http://license.coscl.org.cn/MulanPSL2 +THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +See the Mulan PSL v2 for more details. */ + syntax = "proto3"; package oceanbase.logproxy; diff --git a/logproxy-client/pom.xml b/logproxy-client/pom.xml index 1baa0a3..59a8c1c 100644 --- a/logproxy-client/pom.xml +++ b/logproxy-client/pom.xml @@ -1,4 +1,15 @@ + 4.0.0 diff --git a/pom.xml b/pom.xml index 20ba973..131af8b 100644 --- a/pom.xml +++ b/pom.xml @@ -1,4 +1,15 @@ + 4.0.0 @@ -221,6 +232,52 @@ + + org.apache.rat + apache-rat-plugin + 0.12 + false + + + validate + + check + + + + + false + 0 + + + MulanPSL2 + Mulan Public Licenseļ¼ŒVersion 2 + + + Mulan PSL v2 + + + + + + Mulan Public Licenseļ¼ŒVersion 2 + + + + + **/.*/** + + **/target/** + + **/*.iml + + **/*.md + + **/*.key + **/*.crt + + + diff --git a/scripts/protoc.sh b/scripts/protoc.sh index d91c6ae..552f476 100755 --- a/scripts/protoc.sh +++ b/scripts/protoc.sh @@ -1,4 +1,15 @@ #!/bin/bash +###################################################################################### +# Copyright (c) 2021 OceanBase and/or its affiliates. All rights reserved. +# oblogclient is licensed under Mulan PSL v2. +# You can use this software according to the terms and conditions of the Mulan PSL v2. +# You may obtain a copy of Mulan PSL v2 at: +# http://license.coscl.org.cn/MulanPSL2 +# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. */ +###################################################################################### cd "$(dirname "$0")/.." || exit -- GitLab