Skip to content

Commit 5f0d782

Browse files
Introduce MPL in place of AGPL (#518)
## What is the goal of this PR? We introduce the Mozilla Public License (2.0) to replace all usages of the AGPL license. This is reflected in all license checkstyle rules. We also adopt the MPL license for files in this repository, adding them where necessary and introducing missing `checkstyle` tests. ## What are the changes implemented in this PR? - Update the checkstyle rules to handle MPL instead of AGPL. - Update licenses in this repository to use MPL throughout. - Add missing checkstyle tests and correct licenses throughout this repository.
1 parent e20529c commit 5f0d782

File tree

164 files changed

+1784
-2858
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

164 files changed

+1784
-2858
lines changed

.bazelignore

+4
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1+
# This Source Code Form is subject to the terms of the Mozilla Public
2+
# License, v. 2.0. If a copy of the MPL was not distributed with this
3+
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
4+
15
tool/ide/test

.bazelrc

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# This Source Code Form is subject to the terms of the Mozilla Public
2+
# License, v. 2.0. If a copy of the MPL was not distributed with this
3+
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
4+
15
build --incompatible_strict_action_env
26
run --incompatible_strict_action_env
37
test --incompatible_strict_action_env

.factory/automation.yml

+4-18
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,14 @@
1-
#
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
9-
#
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.
18-
#
1+
# This Source Code Form is subject to the terms of the Mozilla Public
2+
# License, v. 2.0. If a copy of the MPL was not distributed with this
3+
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
194

205
build:
216
correctness:
227
build:
238
image: vaticle-ubuntu-22.04
249
command: |
2510
bazel build //...
11+
bazel test $(bazel query 'kind(checkstyle_test, //... except tool/ide/...)') || exit 1
2612
rust-ide-sync:
2713
image: vaticle-ubuntu-22.04
2814
command: |

.gitattributes

+4-16
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,7 @@
1-
#
2-
# Copyright (C) 2022 Vaticle
3-
#
4-
# This program is free software: you can redistribute it and/or modify
5-
# it under the terms of the GNU Affero General Public License as
6-
# published by the Free Software Foundation, either version 3 of the
7-
# License, or (at your option) any later version.
8-
#
9-
# This program is distributed in the hope that it will be useful,
10-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12-
# GNU Affero General Public License for more details.
13-
#
14-
# You should have received a copy of the GNU Affero General Public License
15-
# along with this program. If not, see <https://www.gnu.org/licenses/>.
16-
#
1+
# This Source Code Form is subject to the terms of the Mozilla Public
2+
# License, v. 2.0. If a copy of the MPL was not distributed with this
3+
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
4+
175

186
*.bat text eol=crlf
197

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# This Source Code Form is subject to the terms of the Mozilla Public
2+
# License, v. 2.0. If a copy of the MPL was not distributed with this
3+
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
4+
5+
16
.DS_Store
27
*.iml
38
.ijwb/

BUILD

+20-16
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
1-
#
2-
# Copyright (C) 2022 Vaticle
3-
#
4-
# This program is free software: you can redistribute it and/or modify
5-
# it under the terms of the GNU Affero General Public License as
6-
# published by the Free Software Foundation, either version 3 of the
7-
# License, or (at your option) any later version.
8-
#
9-
# This program is distributed in the hope that it will be useful,
10-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12-
# GNU Affero General Public License for more details.
13-
#
14-
# You should have received a copy of the GNU Affero General Public License
15-
# along with this program. If not, see <https://www.gnu.org/licenses/>.
16-
#
1+
# This Source Code Form is subject to the terms of the Mozilla Public
2+
# License, v. 2.0. If a copy of the MPL was not distributed with this
3+
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
4+
5+
load("//tool/checkstyle:rules.bzl", "checkstyle_test")
6+
7+
checkstyle_test(
8+
name = "checkstyle",
9+
include = glob(["*", ".factory/*"]),
10+
exclude = glob([
11+
"*.md",
12+
]) + [
13+
".bazelversion",
14+
".bazel-remote-cache.rc",
15+
".bazel-cache-credential.json",
16+
"LICENSE",
17+
],
18+
license_type = "mpl-header",
19+
size = "small",
20+
)

0 commit comments

Comments
 (0)