Skip to content

Commit

Permalink
Update AGPL header format to the recommended by the license
Browse files Browse the repository at this point in the history
  • Loading branch information
QU3B1M committed Dec 11, 2024
1 parent 516f34e commit 0d7967e
Show file tree
Hide file tree
Showing 48 changed files with 1,912 additions and 541 deletions.
17 changes: 14 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
/*
* Copyright (C) 2024 Wazuh
* This file is part of Wazuh Indexer Plugins, which are licensed under the AGPLv3.
* See <https://www.gnu.org/licenses/agpl-3.0.txt> for the full text of the license.
* Copyright (C) 2024, Wazuh Inc.
*
* 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/>.
*/
plugins { id "com.diffplug.spotless" version "6.25.0" }
repositories { mavenCentral() }
Expand Down
17 changes: 14 additions & 3 deletions formatter/license-header.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
/*
* Copyright (C) 2024 Wazuh
* This file is part of Wazuh Indexer Plugins, which are licensed under the AGPLv3.
* See <https://www.gnu.org/licenses/agpl-3.0.txt> for the full text of the license.
* Copyright (C) 2024, Wazuh Inc.
*
* 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/>.
*/
17 changes: 14 additions & 3 deletions gradle/formatting.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
/*
* Copyright (C) 2024 Wazuh
* This file is part of Wazuh Indexer Plugins, which are licensed under the AGPLv3.
* See <https://www.gnu.org/licenses/agpl-3.0.txt> for the full text of the license.
* Copyright (C) 2024, Wazuh Inc.
*
* 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/>.
*/

allprojects {
Expand Down
862 changes: 661 additions & 201 deletions plugins/command-manager/LICENSE.txt

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions plugins/command-manager/NOTICE.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
OpenSearch (https://opensearch.org/)
Copyright OpenSearch Contributors
Wazuh (https://wazuh.com/)
Copyright Wazuh Contributors
9 changes: 5 additions & 4 deletions plugins/command-manager/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@

import org.opensearch.gradle.test.RestIntegTestTask
import java.util.concurrent.Callable

buildscript {
Expand Down Expand Up @@ -45,8 +43,8 @@ publishing {
description = pluginDescription
licenses {
license {
name = "The Apache License, Version 2.0"
url = "http://www.apache.org/licenses/LICENSE-2.0.txt"
name = "GNU Affero General Public License (AGPL) version 3.0"
url = "http://www.gnu.org/licenses/agpl-3.0.txt"
}
}
developers {
Expand Down Expand Up @@ -122,6 +120,9 @@ dependencies {
testImplementation "io.gatehill.imposter:mock-openapi:${versions.imposter}"
}

// No need to validate license headers since spotless checks and applies it
licenseHeaders.enabled = false

// This requires an additional Jar not published as part of build-tools
loggerUsageCheck.enabled = false

Expand Down
15 changes: 11 additions & 4 deletions plugins/command-manager/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
# Copyright (C) 2024, Wazuh Inc.
#
# SPDX-License-Identifier: Apache-2.0
# 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.
#
# The OpenSearch Contributors require contributions made to
# this file be licensed under the Apache-2.0 license or a
# compatible open source license.
# 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/>.

org.gradle.caching=true
org.gradle.warning.mode=none
Expand Down
15 changes: 11 additions & 4 deletions plugins/command-manager/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
# Copyright (C) 2024, Wazuh Inc.
#
# SPDX-License-Identifier: Apache-2.0
# 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.
#
# The OpenSearch Contributors require contributions made to
# this file be licensed under the Apache-2.0 license or a
# compatible open source license.
# 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/>.

distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
/*
* Copyright (C) 2024 Wazuh
* This file is part of Wazuh Indexer Plugins, which are licensed under the AGPLv3.
* See <https://www.gnu.org/licenses/agpl-3.0.txt> for the full text of the license.
* Copyright (C) 2024, Wazuh Inc.
*
* 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/>.
*/
package com.wazuh.commandmanager;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
/*
* Copyright (C) 2024 Wazuh
* This file is part of Wazuh Indexer Plugins, which are licensed under the AGPLv3.
* See <https://www.gnu.org/licenses/agpl-3.0.txt> for the full text of the license.
* Copyright (C) 2024, Wazuh Inc.
*
* 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/>.
*/
package com.wazuh.commandmanager.auth;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
/*
* Copyright (C) 2024 Wazuh
* This file is part of Wazuh Indexer Plugins, which are licensed under the AGPLv3.
* See <https://www.gnu.org/licenses/agpl-3.0.txt> for the full text of the license.
* Copyright (C) 2024, Wazuh Inc.
*
* 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/>.
*/
package com.wazuh.commandmanager.auth;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
/*
* Copyright (C) 2024 Wazuh
* This file is part of Wazuh Indexer Plugins, which are licensed under the AGPLv3.
* See <https://www.gnu.org/licenses/agpl-3.0.txt> for the full text of the license.
* Copyright (C) 2024, Wazuh Inc.
*
* 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/>.
*/
package com.wazuh.commandmanager.index;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
/*
* Copyright (C) 2024 Wazuh
* This file is part of Wazuh Indexer Plugins, which are licensed under the AGPLv3.
* See <https://www.gnu.org/licenses/agpl-3.0.txt> for the full text of the license.
* Copyright (C) 2024, Wazuh Inc.
*
* 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/>.
*/
package com.wazuh.commandmanager.jobscheduler;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
/*
* Copyright (C) 2024 Wazuh
* This file is part of Wazuh Indexer Plugins, which are licensed under the AGPLv3.
* See <https://www.gnu.org/licenses/agpl-3.0.txt> for the full text of the license.
* Copyright (C) 2024, Wazuh Inc.
*
* 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/>.
*/
package com.wazuh.commandmanager.jobscheduler;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
/*
* Copyright (C) 2024 Wazuh
* This file is part of Wazuh Indexer Plugins, which are licensed under the AGPLv3.
* See <https://www.gnu.org/licenses/agpl-3.0.txt> for the full text of the license.
* Copyright (C) 2024, Wazuh Inc.
*
* 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/>.
*/
package com.wazuh.commandmanager.jobscheduler;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
/*
* Copyright (C) 2024 Wazuh
* This file is part of Wazuh Indexer Plugins, which are licensed under the AGPLv3.
* See <https://www.gnu.org/licenses/agpl-3.0.txt> for the full text of the license.
* Copyright (C) 2024, Wazuh Inc.
*
* 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/>.
*/
package com.wazuh.commandmanager.jobscheduler;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
/*
* Copyright (C) 2024 Wazuh
* This file is part of Wazuh Indexer Plugins, which are licensed under the AGPLv3.
* See <https://www.gnu.org/licenses/agpl-3.0.txt> for the full text of the license.
* Copyright (C) 2024, Wazuh Inc.
*
* 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/>.
*/
package com.wazuh.commandmanager.model;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
/*
* Copyright (C) 2024 Wazuh
* This file is part of Wazuh Indexer Plugins, which are licensed under the AGPLv3.
* See <https://www.gnu.org/licenses/agpl-3.0.txt> for the full text of the license.
* Copyright (C) 2024, Wazuh Inc.
*
* 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/>.
*/
package com.wazuh.commandmanager.model;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
/*
* Copyright (C) 2024 Wazuh
* This file is part of Wazuh Indexer Plugins, which are licensed under the AGPLv3.
* See <https://www.gnu.org/licenses/agpl-3.0.txt> for the full text of the license.
* Copyright (C) 2024, Wazuh Inc.
*
* 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/>.
*/
package com.wazuh.commandmanager.model;

Expand Down
Loading

0 comments on commit 0d7967e

Please sign in to comment.