mirror of
https://github.com/SimplexDevelopment/SimplexCL.git
synced 2024-12-22 07:57:38 +00:00
Update to match Maven
This commit is contained in:
parent
aa54dd5f10
commit
45076be8df
7
.gitignore
vendored
7
.gitignore
vendored
@ -21,3 +21,10 @@
|
|||||||
|
|
||||||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
|
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
|
||||||
hs_err_pid*
|
hs_err_pid*
|
||||||
|
|
||||||
|
gradle.properties
|
||||||
|
*.properties
|
||||||
|
|
||||||
|
build/*
|
||||||
|
.gradle/*
|
||||||
|
.idea/*
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
33
.idea/kotlinScripting.xml
generated
Normal file
33
.idea/kotlinScripting.xml
generated
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="KotlinScriptingSettings">
|
||||||
|
<scriptDefinition className="org.jetbrains.kotlin.scripting.resolve.KotlinScriptDefinitionFromAnnotatedTemplate" definitionName="KotlinInitScript">
|
||||||
|
<order>0</order>
|
||||||
|
<autoReloadConfigurations>true</autoReloadConfigurations>
|
||||||
|
</scriptDefinition>
|
||||||
|
<scriptDefinition className="org.jetbrains.kotlin.scripting.resolve.KotlinScriptDefinitionFromAnnotatedTemplate" definitionName="KotlinSettingsScript">
|
||||||
|
<order>1</order>
|
||||||
|
<autoReloadConfigurations>true</autoReloadConfigurations>
|
||||||
|
</scriptDefinition>
|
||||||
|
<scriptDefinition className="org.jetbrains.kotlin.scripting.resolve.KotlinScriptDefinitionFromAnnotatedTemplate" definitionName="KotlinBuildScript">
|
||||||
|
<order>2</order>
|
||||||
|
<autoReloadConfigurations>true</autoReloadConfigurations>
|
||||||
|
</scriptDefinition>
|
||||||
|
<scriptDefinition className="circlet.pipelines.config.dsl.scriptdefinition.ProjectScriptDefinition" definitionName="ProjectScriptDefinition">
|
||||||
|
<order>3</order>
|
||||||
|
<autoReloadConfigurations>true</autoReloadConfigurations>
|
||||||
|
</scriptDefinition>
|
||||||
|
<scriptDefinition className="org.jetbrains.kotlin.mainKts.MainKtsScript" definitionName="MainKtsScript">
|
||||||
|
<order>4</order>
|
||||||
|
<autoReloadConfigurations>true</autoReloadConfigurations>
|
||||||
|
</scriptDefinition>
|
||||||
|
<scriptDefinition className="kotlin.script.templates.standard.ScriptTemplateWithBindings" definitionName="Script definition for extension scripts and IDE console">
|
||||||
|
<order>5</order>
|
||||||
|
<autoReloadConfigurations>true</autoReloadConfigurations>
|
||||||
|
</scriptDefinition>
|
||||||
|
<scriptDefinition className="org.jetbrains.kotlin.idea.core.script.StandardIdeScriptDefinition" definitionName="Kotlin Script">
|
||||||
|
<order>6</order>
|
||||||
|
<autoReloadConfigurations>true</autoReloadConfigurations>
|
||||||
|
</scriptDefinition>
|
||||||
|
</component>
|
||||||
|
</project>
|
22
README.md
22
README.md
@ -1,2 +1,24 @@
|
|||||||
# SimplexCL
|
# SimplexCL
|
||||||
|
|
||||||
|
This is an abstracted command system designed to make Paper's default command loading and building cleaner and prettier. There are numerous things you can do, and a Javadoc will be provided soon. Everything inside the plugin is docced and you can find doccing in the source as well.
|
||||||
|
|
||||||
|
To use this in your plugin, simply add the following to your build.gradle:
|
||||||
|
|
||||||
|
<code>
|
||||||
|
plugins {
|
||||||
|
id "com.github.johnrengelman.shadow" version "7.1.2"
|
||||||
|
}
|
||||||
|
</code>
|
||||||
|
<code>
|
||||||
|
repositories {
|
||||||
|
maven {
|
||||||
|
name = 'sonatype'
|
||||||
|
url = 'https://s01.oss.sonatype.org/content/groups/public/'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</code>
|
||||||
|
<code>
|
||||||
|
dependencies {
|
||||||
|
shadow 'io.github.simplexdevelopment:SimplexCL:1.0.0'
|
||||||
|
}
|
||||||
|
</code>
|
85
build.gradle
85
build.gradle
@ -1,48 +1,91 @@
|
|||||||
/*
|
/*
|
||||||
* This file was generated by the Gradle 'init' task.
|
* This file was generated by the Gradle "init" task.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id 'java'
|
id ("java")
|
||||||
id 'maven-publish'
|
id ("maven-publish")
|
||||||
id 'com.github.johnrengelman.shadow' version '7.1.2'
|
id ("signing")
|
||||||
}
|
}
|
||||||
|
|
||||||
apply plugin: 'com.github.johnrengelman.shadow'
|
java {
|
||||||
apply plugin: 'java'
|
withSourcesJar()
|
||||||
|
withJavadocJar()
|
||||||
tasks {
|
|
||||||
build {
|
|
||||||
dependsOn(shadowJar)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenLocal()
|
mavenLocal()
|
||||||
maven {
|
maven {
|
||||||
url = uri('https://papermc.io/repo/repository/maven-public/')
|
url = uri("https://papermc.io/repo/repository/maven-public/")
|
||||||
}
|
}
|
||||||
|
|
||||||
maven {
|
maven {
|
||||||
url = uri('https://oss.sonatype.org/content/groups/public/')
|
url = uri("https://oss.sonatype.org/content/groups/public/")
|
||||||
}
|
}
|
||||||
|
|
||||||
maven {
|
maven {
|
||||||
url = uri('https://repo.maven.apache.org/maven2/')
|
url = uri("https://repo.maven.apache.org/maven2/")
|
||||||
}
|
}
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
shadow 'org.reflections:reflections:0.10.2'
|
compileOnly ("io.papermc.paper:paper-api:1.18.1-R0.1-SNAPSHOT")
|
||||||
compileOnly 'io.papermc.paper:paper-api:1.18.1-R0.1-SNAPSHOT'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
group = 'io.github.simplex'
|
group = ("io.github.simplex")
|
||||||
version = '1.0.0'
|
version = ("1.0.0")
|
||||||
description = 'SimplexCL'
|
description = ("SimplexCL")
|
||||||
java.sourceCompatibility = JavaVersion.VERSION_17
|
java.sourceCompatibility = JavaVersion.VERSION_17
|
||||||
|
|
||||||
tasks.withType(JavaCompile) {
|
// Because the components are created only during the afterEvaluate phase, you must
|
||||||
options.encoding = 'UTF-8'
|
// configure your publications using the afterEvaluate() lifecycle method.
|
||||||
|
|
||||||
|
afterEvaluate {
|
||||||
|
publishing {
|
||||||
|
publications {
|
||||||
|
release(MavenPublication) {
|
||||||
|
from components.java
|
||||||
|
groupId = 'io.github.simplexdevelopment'
|
||||||
|
artifactId = 'SimplexCL'
|
||||||
|
version = '1.0.0'
|
||||||
|
pom {
|
||||||
|
signing {
|
||||||
|
sign publishing.publications.release
|
||||||
|
sign configurations.archives
|
||||||
|
}
|
||||||
|
name = 'SimplexCL'
|
||||||
|
description = 'A better alternative to Paper\'s Command Loader'
|
||||||
|
url = 'https://simplexdev.app'
|
||||||
|
licenses {
|
||||||
|
license {
|
||||||
|
name = 'MIT License'
|
||||||
|
url = 'https://opensource.org/licenses/MIT'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
developers {
|
||||||
|
developer {
|
||||||
|
id = 'SimplexDevelopment'
|
||||||
|
name = 'Simplex Development Group'
|
||||||
|
email = 'reillypaul195@gmail.com'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
scm {
|
||||||
|
connection = 'scm:git:git://github.com/SimplexDevelopment/SimplexCL.git'
|
||||||
|
developerConnection = 'scm:git:ssh://github.com/SimplexDevelopment/SimplexCL.git'
|
||||||
|
url = 'https://github.com/SimplexDevelopment/SimplexCL'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
repositories {
|
||||||
|
maven {
|
||||||
|
url = uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
|
||||||
|
credentials {
|
||||||
|
username = ''
|
||||||
|
password = ''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
Binary file not shown.
@ -1,4 +0,0 @@
|
|||||||
Manifest-Version: 1.0
|
|
||||||
Class-Path: reflections-0.10.2.jar javassist-3.28.0-GA.jar jsr305-3.0.2.
|
|
||||||
jar slf4j-api-1.7.32.jar
|
|
||||||
|
|
@ -2,4 +2,4 @@
|
|||||||
* This file was generated by the Gradle 'init' task.
|
* This file was generated by the Gradle 'init' task.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
rootProject.name = 'SimplexCL'
|
rootProject.name = ("SimplexCL")
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
package io.github.simplex.cl;
|
package io.github.simplexdevelopment.cl;
|
||||||
|
|
||||||
import io.github.simplex.cl.api.ICommand;
|
import io.github.simplexdevelopment.cl.api.ICommand;
|
||||||
import io.github.simplex.cl.api.SubCommand;
|
import io.github.simplexdevelopment.cl.api.SubCommand;
|
||||||
import io.github.simplex.msgutils.AdvancedColors;
|
import io.github.simplexdevelopment.msgutils.AdvancedColors;
|
||||||
import io.github.simplex.msgutils.BasicColors;
|
import io.github.simplexdevelopment.msgutils.BasicColors;
|
||||||
import net.kyori.adventure.text.Component;
|
import net.kyori.adventure.text.Component;
|
||||||
import net.kyori.adventure.text.TextComponent;
|
import net.kyori.adventure.text.TextComponent;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
@ -1,6 +1,6 @@
|
|||||||
package io.github.simplex.cl;
|
package io.github.simplexdevelopment.cl;
|
||||||
|
|
||||||
import io.github.simplex.cl.api.annotations.Info;
|
import io.github.simplexdevelopment.cl.api.annotations.Info;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.plugin.Plugin;
|
import org.bukkit.plugin.Plugin;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package io.github.simplex.cl;
|
package io.github.simplexdevelopment.cl;
|
||||||
|
|
||||||
import net.kyori.adventure.text.Component;
|
import net.kyori.adventure.text.Component;
|
||||||
import org.bukkit.command.Command;
|
import org.bukkit.command.Command;
|
@ -1,4 +1,4 @@
|
|||||||
package io.github.simplex.cl;
|
package io.github.simplexdevelopment.cl;
|
||||||
|
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package io.github.simplex.cl.api;
|
package io.github.simplexdevelopment.cl.api;
|
||||||
|
|
||||||
import org.bukkit.command.CommandExecutor;
|
import org.bukkit.command.CommandExecutor;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
@ -1,4 +1,4 @@
|
|||||||
package io.github.simplex.cl.api;
|
package io.github.simplexdevelopment.cl.api;
|
||||||
|
|
||||||
@FunctionalInterface
|
@FunctionalInterface
|
||||||
public interface SubCommand {
|
public interface SubCommand {
|
@ -1,4 +1,4 @@
|
|||||||
package io.github.simplex.cl.api.annotations;
|
package io.github.simplexdevelopment.cl.api.annotations;
|
||||||
|
|
||||||
import java.lang.annotation.ElementType;
|
import java.lang.annotation.ElementType;
|
||||||
import java.lang.annotation.Retention;
|
import java.lang.annotation.Retention;
|
@ -1,9 +1,9 @@
|
|||||||
package io.github.simplex.cl.impl;
|
package io.github.simplexdevelopment.cl.impl;
|
||||||
|
|
||||||
import io.github.simplex.cl.CommandBase;
|
import io.github.simplexdevelopment.cl.CommandBase;
|
||||||
import io.github.simplex.cl.api.annotations.Info;
|
import io.github.simplexdevelopment.cl.api.annotations.Info;
|
||||||
import io.github.simplex.msgutils.AdvancedColors;
|
import io.github.simplexdevelopment.msgutils.AdvancedColors;
|
||||||
import io.github.simplex.msgutils.BasicColors;
|
import io.github.simplexdevelopment.msgutils.BasicColors;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
|
|
||||||
@Info(name = "example", description = "An example command implementation to see how this works.", usage = "/example [info]", aliases = "ex, impl")
|
@Info(name = "example", description = "An example command implementation to see how this works.", usage = "/example [info]", aliases = "ex, impl")
|
@ -1,4 +1,4 @@
|
|||||||
package io.github.simplex.msgutils;
|
package io.github.simplexdevelopment.msgutils;
|
||||||
|
|
||||||
import net.kyori.adventure.text.format.TextColor;
|
import net.kyori.adventure.text.format.TextColor;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package io.github.simplex.msgutils;
|
package io.github.simplexdevelopment.msgutils;
|
||||||
|
|
||||||
import net.kyori.adventure.text.format.TextColor;
|
import net.kyori.adventure.text.format.TextColor;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package io.github.simplex.msgutils;
|
package io.github.simplexdevelopment.msgutils;
|
||||||
|
|
||||||
import net.kyori.adventure.text.format.TextDecoration;
|
import net.kyori.adventure.text.format.TextDecoration;
|
||||||
import net.kyori.adventure.text.format.TextFormat;
|
import net.kyori.adventure.text.format.TextFormat;
|
Loading…
Reference in New Issue
Block a user