Skip to content

Commit

Permalink
chore: Update license to EPL v2 (#112)
Browse files Browse the repository at this point in the history
The current license contributions have been provided under, EPL v1,
grants permission to use a newer version of the same license, so this
can be applicable immediately.

This version has several improvements, most importantly removing the
choice of law provisions that mention a jurisdiction foreign to many
contributors.
  • Loading branch information
zml2008 authored Jun 10, 2024
1 parent a5abd80 commit d16793f
Show file tree
Hide file tree
Showing 75 changed files with 883 additions and 56 deletions.
7 changes: 7 additions & 0 deletions HEADER
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Copyright (c) 2011-2024 WorldEditCUI team and contributors

This program and the accompanying materials are made
available under the terms of the Eclipse Public License 2.0
which is available at https://www.eclipse.org/legal/epl-2.0/

SPDX-License-Identifier: EPL-2.0
297 changes: 244 additions & 53 deletions LICENSE

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Credits
Legal stuff
-----------

The code for WorldEditCUI (and therefore the compiled mod) is licensed under the [Eclipse Public License v1].
The code for WorldEditCUI (and therefore the compiled mod) is licensed under the [Eclipse Public License v2].

[WorldEdit]: https://enginehub.org/worldedit/
[Eclipse Public License v1]: https://www.eclipse.org/org/documents/epl-v10.php
[Eclipse Public License v2]: https://www.eclipse.org/legal/epl-2.0/
6 changes: 6 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ import net.fabricmc.loom.LoomGradleExtension
plugins {
java
alias(libs.plugins.indra.git)
alias(libs.plugins.indra.spotlessLicenser)
alias(libs.plugins.loom)
alias(libs.plugins.versions)
alias(libs.plugins.javaEcosystemCapabilities)
alias(libs.plugins.curseForgeGradle)
alias(libs.plugins.minotaur)
alias(libs.plugins.publishGithubRelease)
alias(libs.plugins.spotless)
}

group = "org.enginehub.worldeditcui"
Expand Down Expand Up @@ -48,6 +50,10 @@ tasks.withType(JavaCompile::class).configureEach {
options.compilerArgs.addAll(listOf("-Xlint:all", "-Xlint:-processing"))
}

indraSpotlessLicenser {
licenseHeaderFile(rootProject.file("HEADER"))
}

loom {
runs {
named("client") {
Expand Down
2 changes: 2 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ worldedit = { module = "com.sk89q.worldedit:worldedit-fabric-mc1.20.2", version
[plugins]
curseForgeGradle = { id = "net.darkhax.curseforgegradle", version = "1.1.17" }
indra-git = { id = "net.kyori.indra.git", version.ref = "indra" }
indra-spotlessLicenser = { id = "net.kyori.indra.licenser.spotless", version.ref = "indra" }
javaEcosystemCapabilities = { id = "org.gradlex.java-ecosystem-capabilities", version = "1.3.1" }
loom = { id = "fabric-loom", version = "1.4.4" }
minotaur = { id = "com.modrinth.minotaur", version = "2.8.7" }
publishGithubRelease = { id = "ca.stellardrift.publish-github-release", version = "0.1.0" }
spotless = { id = "com.diffplug.spotless", version = "6.25.0" }
versions = { id = "com.github.ben-manes.versions", version = "0.50.0" }
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* Copyright (c) 2011-2024 WorldEditCUI team and contributors
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*/
package org.enginehub.worldeditcui;

import org.enginehub.worldeditcui.exceptions.InitialisationException;
Expand Down
9 changes: 9 additions & 0 deletions src/main/java/org/enginehub/worldeditcui/WorldEditCUI.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* Copyright (c) 2011-2024 WorldEditCUI team and contributors
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*/
package org.enginehub.worldeditcui;

import net.minecraft.client.Minecraft;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* Copyright (c) 2011-2024 WorldEditCUI team and contributors
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*/
package org.enginehub.worldeditcui.config;

import com.google.gson.Gson;
Expand Down
9 changes: 9 additions & 0 deletions src/main/java/org/enginehub/worldeditcui/config/Colour.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* Copyright (c) 2011-2024 WorldEditCUI team and contributors
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*/
package org.enginehub.worldeditcui.config;

import org.jetbrains.annotations.Nullable;
Expand Down
9 changes: 9 additions & 0 deletions src/main/java/org/enginehub/worldeditcui/debug/CUIDebug.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* Copyright (c) 2011-2024 WorldEditCUI team and contributors
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*/
package org.enginehub.worldeditcui.debug;

import net.fabricmc.loader.api.FabricLoader;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* Copyright (c) 2011-2024 WorldEditCUI team and contributors
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*/
package org.enginehub.worldeditcui.debug;

import org.apache.logging.log4j.Level;
Expand Down
9 changes: 9 additions & 0 deletions src/main/java/org/enginehub/worldeditcui/event/CUIEvent.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* Copyright (c) 2011-2024 WorldEditCUI team and contributors
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*/
package org.enginehub.worldeditcui.event;

import com.google.common.base.Joiner;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* Copyright (c) 2011-2024 WorldEditCUI team and contributors
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*/
package org.enginehub.worldeditcui.event;

import com.google.common.base.Joiner;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* Copyright (c) 2011-2024 WorldEditCUI team and contributors
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*/
package org.enginehub.worldeditcui.event;

import org.enginehub.worldeditcui.InitialisationFactory;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* Copyright (c) 2011-2024 WorldEditCUI team and contributors
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*/
package org.enginehub.worldeditcui.event;

import org.enginehub.worldeditcui.event.cui.CUIEventBounds;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* Copyright (c) 2011-2024 WorldEditCUI team and contributors
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*/
package org.enginehub.worldeditcui.event.cui;

import org.enginehub.worldeditcui.event.CUIEvent;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* Copyright (c) 2011-2024 WorldEditCUI team and contributors
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*/
package org.enginehub.worldeditcui.event.cui;

import org.enginehub.worldeditcui.config.Colour;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* Copyright (c) 2011-2024 WorldEditCUI team and contributors
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*/
package org.enginehub.worldeditcui.event.cui;

import org.enginehub.worldeditcui.event.CUIEvent;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* Copyright (c) 2011-2024 WorldEditCUI team and contributors
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*/
package org.enginehub.worldeditcui.event.cui;

import org.enginehub.worldeditcui.event.CUIEvent;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* Copyright (c) 2011-2024 WorldEditCUI team and contributors
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*/
package org.enginehub.worldeditcui.event.cui;

import org.enginehub.worldeditcui.event.CUIEvent;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* Copyright (c) 2011-2024 WorldEditCUI team and contributors
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*/
package org.enginehub.worldeditcui.event.cui;

import org.enginehub.worldeditcui.event.CUIEventArgs;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* Copyright (c) 2011-2024 WorldEditCUI team and contributors
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*/
package org.enginehub.worldeditcui.event.cui;

import net.minecraft.client.Minecraft;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* Copyright (c) 2011-2024 WorldEditCUI team and contributors
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*/
package org.enginehub.worldeditcui.event.cui;

import org.enginehub.worldeditcui.event.CUIEvent;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* Copyright (c) 2011-2024 WorldEditCUI team and contributors
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*/
package org.enginehub.worldeditcui.event.cui;

import org.enginehub.worldeditcui.event.CUIEvent;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* Copyright (c) 2011-2024 WorldEditCUI team and contributors
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*/
package org.enginehub.worldeditcui.event.cui;

import org.enginehub.worldeditcui.event.CUIEvent;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* Copyright (c) 2011-2024 WorldEditCUI team and contributors
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*/
package org.enginehub.worldeditcui.event.listeners;

import org.enginehub.worldeditcui.WorldEditCUI;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* Copyright (c) 2011-2024 WorldEditCUI team and contributors
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*/
package org.enginehub.worldeditcui.event.listeners;

import com.mojang.blaze3d.platform.GlStateManager;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* Copyright (c) 2011-2024 WorldEditCUI team and contributors
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*/
package org.enginehub.worldeditcui.event.listeners;

import com.mojang.blaze3d.systems.RenderSystem;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* Copyright (c) 2011-2024 WorldEditCUI team and contributors
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*/
package org.enginehub.worldeditcui.exceptions;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* Copyright (c) 2011-2024 WorldEditCUI team and contributors
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*/
package org.enginehub.worldeditcui.exceptions;

public class InvalidSelectionTypeException extends RuntimeException
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* Copyright (c) 2011-2024 WorldEditCUI team and contributors
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*/
package org.enginehub.worldeditcui.fabric;

import net.earthcomputer.multiconnect.api.MultiConnectAPI;
Expand Down
Loading

0 comments on commit d16793f

Please sign in to comment.