Skip to content

Commit

Permalink
Introduce MPL in place of AGPL (#518)
Browse files Browse the repository at this point in the history
## 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.
  • Loading branch information
flyingsilverfin authored Mar 28, 2024
1 parent e20529c commit 5f0d782
Show file tree
Hide file tree
Showing 164 changed files with 1,784 additions and 2,858 deletions.
4 changes: 4 additions & 0 deletions .bazelignore
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

tool/ide/test
4 changes: 4 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

build --incompatible_strict_action_env
run --incompatible_strict_action_env
test --incompatible_strict_action_env
22 changes: 4 additions & 18 deletions .factory/automation.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,14 @@
#
# 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.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

build:
correctness:
build:
image: vaticle-ubuntu-22.04
command: |
bazel build //...
bazel test $(bazel query 'kind(checkstyle_test, //... except tool/ide/...)') || exit 1
rust-ide-sync:
image: vaticle-ubuntu-22.04
command: |
Expand Down
20 changes: 4 additions & 16 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,19 +1,7 @@
#
# Copyright (C) 2022 Vaticle
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.


*.bat text eol=crlf

Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.


.DS_Store
*.iml
.ijwb/
Expand Down
36 changes: 20 additions & 16 deletions BUILD
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
#
# Copyright (C) 2022 Vaticle
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

load("//tool/checkstyle:rules.bzl", "checkstyle_test")

checkstyle_test(
name = "checkstyle",
include = glob(["*", ".factory/*"]),
exclude = glob([
"*.md",
]) + [
".bazelversion",
".bazel-remote-cache.rc",
".bazel-cache-credential.json",
"LICENSE",
],
license_type = "mpl-header",
size = "small",
)
Loading

0 comments on commit 5f0d782

Please sign in to comment.