Move from gradle to kotlin (#7)

This commit is contained in:
NotMyFault authored and GitHub committed 2020-09-09 00:07:58 +02:00
1 parent 5b07416c08
commit 53bb09908f
68 files changed
+128 -61

No files matched your search

+1 -1
View File
@@ -6,7 +6,7 @@
|____/ \__,_|_|_|\__,_|\___|_| |___/ \____/ \__|_|_|_|\__|_|\___||___/
Builder's Utilities is a collection of a lot of tiny features that help with building.
Copyright (C) ${year} Arcaniax
Copyright (C) 2020 Arcaniax
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
-59
View File
@@ -1,59 +0,0 @@
plugins {
id "java"
id "com.github.hierynomus.license" version "0.15.0"
id "com.github.johnrengelman.shadow" version "6.0.0"
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
jcenter()
maven { url = "https://hub.spigotmc.org/nexus/content/repositories/snapshots" }
maven { url = "https://repo.codemc.org/repository/maven-public" }
maven { url = "https://libraries.minecraft.net/" }
}
dependencies {
"compileOnly"("org.spigotmc:spigot-api:1.16.2-R0.1-SNAPSHOT")
"implementation"("com.mojang:authlib:1.5.25")
"implementation"("org.apache.logging.log4j:log4j-slf4j-impl:2.8.1")
"compile"("org.bstats:bstats-bukkit:1.7")
}
version = "2.0.0"
shadowJar {
dependencies {
include(dependency('org.apache.logging.log4j:log4j-slf4j-impl'))
include(dependency('org.slf4j:slf4j-api'))
include(dependency("org.bstats:bstats-bukkit:1.7"))
}
relocate('org.apache.logging.slf4j', 'net.arcaniax.logging.apache')
relocate('org.slf4j', 'net.arcaniax.logging.slf4j')
relocate("org.bstats", "net.arcaniax.metrics")
}
license {
header rootProject.file('HEADER')
mapping 'java', 'SLASHSTAR_STYLE'
ext.year = 2020
includes(["**/*.java"])
excludes(["**/XMaterial.java"])
}
processResources {
from('src/main/resources') {
include 'plugin.yml'
expand(
version: project.version
)
include 'config.yml'
include 'LICENSE'
}
}
clean.doFirst {
delete "../target"
}
+63
View File
@@ -0,0 +1,63 @@
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import net.minecrell.gradle.licenser.LicenseExtension
plugins {
id("java")
id("net.minecrell.licenser") version "0.4.1"
id("com.github.johnrengelman.shadow") version "6.0.0"
}
configure<JavaPluginConvention> {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
repositories {
mavenCentral()
jcenter()
maven {
name = "Spigot"
url = uri("https://hub.spigotmc.org/nexus/content/repositories/snapshots")
}
maven {
name = "bStats"
url = uri("https://repo.codemc.org/repository/maven-public")
}
maven {
name = "Mojang"
url = uri("https://libraries.minecraft.net/")
}
}
dependencies {
"compileOnly"("org.spigotmc:spigot-api:1.16.2-R0.1-SNAPSHOT")
"implementation"("com.mojang:authlib:1.5.25")
"implementation"("org.apache.logging.log4j:log4j-slf4j-impl:2.8.1")
"compile"("org.bstats:bstats-bukkit:1.7")
}
version = "2.0.0"
tasks.named<ShadowJar>("shadowJar") {
dependencies {
include(dependency("org.apache.logging.log4j:log4j-slf4j-impl"))
include(dependency("org.slf4j:slf4j-api"))
include(dependency("org.bstats:bstats-bukkit:1.7"))
relocate("org.apache.logging.slf4j", "net.arcaniax.logging.apache")
relocate("org.slf4j", "net.arcaniax.logging.slf4j")
relocate("org.bstats", "net.arcaniax.metrics")
}
}
configure<LicenseExtension> {
header = rootProject.file("HEADER")
include("**/*.java")
exclude("**/XMaterial.java")
}
tasks.named<Copy>("processResources") {
filesMatching("plugin.yml") {
expand("version" to project.version)
}
}
-1
View File
@@ -1 +0,0 @@
rootProject.name = 'Builders-Utilities'
+1
View File
@@ -0,0 +1 @@
rootProject.name = "Builders-Utilities"
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities;
import net.arcaniax.buildersutilities.commands.system.CommandForwarder;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities;
import org.bukkit.Bukkit;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities;
import net.arcaniax.buildersutilities.utils.CustomConfig;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.commands;
import net.arcaniax.buildersutilities.Main;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.commands;
import net.arcaniax.buildersutilities.Main;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.commands;
import net.arcaniax.buildersutilities.Main;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.commands;
import net.arcaniax.buildersutilities.Main;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.commands;
import net.arcaniax.buildersutilities.Main;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.commands;
import net.arcaniax.buildersutilities.Main;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.commands;
import net.arcaniax.buildersutilities.Main;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.commands;
import net.arcaniax.buildersutilities.Main;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.commands.aliases;
import net.arcaniax.buildersutilities.Main;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.commands.aliases;
import net.arcaniax.buildersutilities.Main;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.commands.aliases;
import net.arcaniax.buildersutilities.Main;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.commands.aliases;
import net.arcaniax.buildersutilities.Main;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.commands.aliases;
import net.arcaniax.buildersutilities.Main;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.commands.aliases;
import net.arcaniax.buildersutilities.Main;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.commands.aliases;
import net.arcaniax.buildersutilities.Main;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.commands.aliases;
import net.arcaniax.buildersutilities.Main;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.commands.aliases;
import net.arcaniax.buildersutilities.Main;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.commands.aliases;
import net.arcaniax.buildersutilities.Main;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.commands.aliases;
import net.arcaniax.buildersutilities.Main;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.commands.aliases;
import net.arcaniax.buildersutilities.Main;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.commands.aliases;
import net.arcaniax.buildersutilities.Main;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.commands.aliases;
import net.arcaniax.buildersutilities.Main;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.commands.system;
import net.arcaniax.buildersutilities.Main;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.commands.system;
import org.bukkit.entity.Player;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.listeners;
import org.bukkit.GameMode;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.listeners;
import net.arcaniax.buildersutilities.Settings;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.listeners;
import net.arcaniax.buildersutilities.Settings;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.listeners;
import net.arcaniax.buildersutilities.Main;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.listeners;
import net.arcaniax.buildersutilities.Settings;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.listeners;
import net.arcaniax.buildersutilities.Settings;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.listeners;
import org.bukkit.entity.Player;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.listeners;
import net.arcaniax.buildersutilities.Main;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.listeners;
import org.bukkit.event.EventHandler;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.listeners;
import net.arcaniax.buildersutilities.Main;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.listeners;
import net.arcaniax.buildersutilities.Settings;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.menus;
import net.arcaniax.buildersutilities.menus.inv.content.InventoryContents;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.menus;
import net.arcaniax.buildersutilities.menus.inv.ClickableItem;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.menus;
import net.arcaniax.buildersutilities.Main;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.menus;
import net.arcaniax.buildersutilities.Main;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.menus;
import net.arcaniax.buildersutilities.NoClipManager;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.menus.bannermenus;
import net.arcaniax.buildersutilities.menus.inv.content.InventoryContents;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.menus.bannermenus;
import net.arcaniax.buildersutilities.menus.inv.content.InventoryContents;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.menus.bannermenus;
import net.arcaniax.buildersutilities.menus.inv.content.InventoryContents;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.menus.inv;
import org.bukkit.event.inventory.InventoryClickEvent;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.menus.inv;
import java.util.function.Consumer;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.menus.inv;
import net.arcaniax.buildersutilities.menus.inv.content.InventoryContents;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.menus.inv;
import net.arcaniax.buildersutilities.menus.inv.content.InventoryContents;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.menus.inv.content;
import net.arcaniax.buildersutilities.menus.inv.ClickableItem;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.menus.inv.content;
import org.bukkit.entity.Player;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.menus.inv.content;
import net.arcaniax.buildersutilities.menus.inv.ClickableItem;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.menus.inv.content;
import net.arcaniax.buildersutilities.menus.inv.ClickableItem;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.menus.inv.content;
public class SlotPos {
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.menus.inv.opener;
import com.google.common.base.Preconditions;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.menus.inv.opener;
import net.arcaniax.buildersutilities.menus.inv.ClickableItem;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.menus.inv.opener;
import com.google.common.collect.ImmutableList;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
//package net.arcaniax.buildersutilities.utils;
//
//import net.arcaniax.buildersutilities.Main;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.utils;
import org.bukkit.configuration.ConfigurationSection;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.utils;
import com.mojang.authlib.GameProfile;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.utils;
import net.arcaniax.buildersutilities.Main;
@@ -22,6 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.utils;
import java.io.BufferedReader;