Skip to content

Commit eef6eac

Browse files
committed
Now we are deploying to Maven Central Repository
1 parent a4ff935 commit eef6eac

File tree

2 files changed

+105
-87
lines changed

2 files changed

+105
-87
lines changed

.github/README.md

Lines changed: 8 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -3,50 +3,38 @@
33
<div align="center">
44

55
[![](https://github.com/Despical/CommandFramework/actions/workflows/build.yml/badge.svg)](https://github.com/Despical/CommandFramework/actions/workflows/build.yml)
6-
[![](https://img.shields.io/github/v/release/Despical/CommandFramework)](https://github.com/Despical/CommandFramework/releases/latest)
7-
[![](https://jitpack.io/v/Despical/CommandFramework.svg)](https://jitpack.io/#Despical/CommandFramework)
6+
[![](https://img.shields.io/maven-central/v/com.github.despical/command-framework.svg?label=Maven%20Central)](https://search.maven.org/artifact/com.github.despical/command-framework)
87
[![](https://img.shields.io/badge/License-GPLv3-blue.svg)](../LICENSE)
98
[![](https://img.shields.io/badge/javadoc-latest-lime.svg)](https://javadoc.jitpack.io/com/github/Despical/CommandFramework/latest/javadoc/index.html)
109

11-
This framework is very lightweight annotation based command system that works similar to Bukkit's event system. It removes the necessity to
12-
add commands to your plugin.yml but will still allow you to set command usage, description, permission, aliases, sender type, cooldown, minimum
13-
and maximum argument length through the code and adds a bunch of new methods to improve your code.
10+
A lightweight, annotation-based command framework inspired by Bukkits event system. It eliminates the need to register commands in plugin.yml
11+
while still allowing you to define usage, description, permissions, aliases, sender types, cooldowns, and argument limits directly in code.
12+
Includes extra helper methods to streamline command handling and improve code readability.
1413

1514
</div>
1615

1716
## Documentation
1817
- [Wiki](https://github.com/Despical/CommandFramework/wiki)
1918
- [JavaDocs](https://javadoc.jitpack.io/com/github/Despical/CommandFramework/latest/javadoc/index.html)
19+
- [Maven Central](https://repo1.maven.org/maven2/com/github/despical/command-framework/)
20+
- [Sonatype Central](https://central.sonatype.com/artifact/com.github.despical/command-framework)
2021

2122
## Using Command Framework
22-
The project isn't in the Central Repository yet, so specifying a repository is needed.<br>
2323
To add this project as a dependency to your project, add the following to your pom.xml:
2424

2525
### Maven dependency
26-
27-
```xml
28-
<repository>
29-
<id>jitpack.io</id>
30-
<url>https://jitpack.io</url>
31-
</repository>
32-
```
3326
```xml
3427
<dependency>
3528
<groupId>com.github.Despical</groupId>
3629
<artifactId>CommandFramework</artifactId>
37-
<version>1.5.2</version>
30+
<version>1.5.3</version>
3831
</dependency>
3932
```
4033

4134
### Gradle dependency
4235
```groovy
43-
repositories {
44-
maven { url 'https://jitpack.io' }
45-
}
46-
```
47-
```groovy
4836
dependencies {
49-
implementation 'com.github.Despical:CommandFramework:1.5.2'
37+
implementation 'com.github.Despical:CommandFramework:1.5.3'
5038
}
5139
```
5240

@@ -56,15 +44,6 @@ dependencies {
5644
## Example usage
5745

5846
```java
59-
import me.despical.commandframework.*;
60-
import me.despical.commandframework.annotations.*;
61-
import org.bukkit.Bukkit;
62-
import org.bukkit.plugin.java.JavaPlugin;
63-
64-
import java.util.Arrays;
65-
import java.util.List;
66-
import java.util.concurrent.TimeUnit;
67-
6847
public class ExampleClass extends JavaPlugin {
6948

7049
@Override

pom.xml

Lines changed: 97 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
44
<modelVersion>4.0.0</modelVersion>
5-
<groupId>me.despical</groupId>
5+
<groupId>com.github.despical</groupId>
66
<artifactId>command-framework</artifactId>
7-
<version>1.5.2</version>
7+
<version>1.5.3</version>
88

99
<name>Command Framework</name>
1010
<inceptionYear>2020</inceptionYear>
11+
<description>Annotation based Command framework.</description>
1112
<url>https://www.spigotmc.org/resources/89933/</url>
1213
<packaging>jar</packaging>
1314

1415
<properties>
15-
<java.version>8</java.version>
16-
<maven.compiler.target>8</maven.compiler.target>
16+
<java.version>21</java.version>
1717
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1818
</properties>
1919

@@ -38,29 +38,35 @@
3838
<url>https://github.com/Despical/CommandFramework/issues/</url>
3939
</issueManagement>
4040

41+
<distributionManagement>
42+
<snapshotRepository>
43+
<id>ossrh</id>
44+
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
45+
</snapshotRepository>
46+
<repository>
47+
<id>ossrh</id>
48+
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
49+
</repository>
50+
</distributionManagement>
51+
52+
<scm>
53+
<url>https://github.com/Despical/CommandFramework</url>
54+
<connection>scm:git:git://github.com/Despical/CommandFramework.git</connection>
55+
<developerConnection>scm:git:ssh://github.com/Despical/CommandFramework.git</developerConnection>
56+
</scm>
57+
4158
<repositories>
4259
<repository>
4360
<id>papermc</id>
4461
<url>https://repo.papermc.io/repository/maven-public/</url>
4562
</repository>
46-
<repository>
47-
<id>paper-legacy</id>
48-
<url>https://papermc.io/repo/repository/maven-public/</url>
49-
</repository>
5063
</repositories>
5164

5265
<dependencies>
53-
<!-- TEST -->
5466
<dependency>
5567
<groupId>io.papermc.paper</groupId>
5668
<artifactId>paper-api</artifactId>
57-
<version>1.20.1-R0.1-SNAPSHOT</version>
58-
<scope>test</scope>
59-
</dependency>
60-
<dependency>
61-
<groupId>com.destroystokyo.paper</groupId>
62-
<artifactId>paper-api</artifactId>
63-
<version>1.16.5-R0.1-SNAPSHOT</version>
69+
<version>1.20.1-R0.1-20230917.004407-174</version>
6470
<scope>provided</scope>
6571
</dependency>
6672
<!-- https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-api -->
@@ -91,48 +97,27 @@
9197
</dependencies>
9298

9399
<build>
100+
<resources>
101+
<resource>
102+
<directory>src/main/resources</directory>
103+
<filtering>true</filtering>
104+
</resource>
105+
</resources>
106+
94107
<plugins>
95108
<plugin>
96109
<groupId>org.apache.maven.plugins</groupId>
97110
<artifactId>maven-compiler-plugin</artifactId>
98-
<version>3.8.1</version>
99-
<executions>
100-
<execution>
101-
<id>default-testCompile</id>
102-
<phase>test-compile</phase>
103-
<goals>
104-
<goal>testCompile</goal>
105-
</goals>
106-
<configuration>
107-
<skip>true</skip>
108-
</configuration>
109-
</execution>
110-
</executions>
111-
<goals>
112-
<goal>compile</goal>
113-
</goals>
111+
<version>3.13.0</version>
114112
<configuration>
115113
<source>${java.version}</source>
116114
<target>${java.version}</target>
117115
</configuration>
118116
</plugin>
119-
<plugin>
120-
<groupId>org.apache.maven.plugins</groupId>
121-
<artifactId>maven-javadoc-plugin</artifactId>
122-
<version>3.2.0</version>
123-
<executions>
124-
<execution>
125-
<id>attach-javadocs</id>
126-
<goals>
127-
<goal>jar</goal>
128-
</goals>
129-
</execution>
130-
</executions>
131-
</plugin>
132117
<plugin>
133118
<groupId>org.apache.maven.plugins</groupId>
134119
<artifactId>maven-shade-plugin</artifactId>
135-
<version>3.1.1</version>
120+
<version>3.6.0</version>
136121
<executions>
137122
<execution>
138123
<phase>package</phase>
@@ -148,19 +133,73 @@
148133
<plugin>
149134
<groupId>org.apache.maven.plugins</groupId>
150135
<artifactId>maven-surefire-plugin</artifactId>
151-
<version>3.0.0-M7</version>
152-
<configuration>
153-
<systemPropertyVariables>
154-
<java.version>17</java.version>
155-
</systemPropertyVariables>
156-
</configuration>
136+
<version>3.5.2</version>
157137
</plugin>
158138
</plugins>
159-
<resources>
160-
<resource>
161-
<directory>src/main/resources</directory>
162-
<filtering>true</filtering>
163-
</resource>
164-
</resources>
165139
</build>
140+
141+
<profiles>
142+
<profile>
143+
<id>release</id>
144+
<build>
145+
<plugins>
146+
<plugin>
147+
<groupId>org.apache.maven.plugins</groupId>
148+
<artifactId>maven-source-plugin</artifactId>
149+
<version>3.3.1</version>
150+
<executions>
151+
<execution>
152+
<id>attach-sources</id>
153+
<goals>
154+
<goal>jar</goal>
155+
</goals>
156+
</execution>
157+
</executions>
158+
</plugin>
159+
<plugin>
160+
<groupId>org.apache.maven.plugins</groupId>
161+
<artifactId>maven-javadoc-plugin</artifactId>
162+
<version>3.10.0</version>
163+
<executions>
164+
<execution>
165+
<id>attach-javadocs</id>
166+
<goals>
167+
<goal>jar</goal>
168+
</goals>
169+
</execution>
170+
</executions>
171+
<configuration>
172+
<failOnError>false</failOnError>
173+
<failOnWarnings>false</failOnWarnings>
174+
<additionalOptions>-Xdoclint:none</additionalOptions>
175+
</configuration>
176+
</plugin>
177+
<plugin>
178+
<groupId>org.apache.maven.plugins</groupId>
179+
<artifactId>maven-gpg-plugin</artifactId>
180+
<version>3.2.4</version>
181+
<executions>
182+
<execution>
183+
<id>sign-artifacts</id>
184+
<phase>verify</phase>
185+
<goals>
186+
<goal>sign</goal>
187+
</goals>
188+
</execution>
189+
</executions>
190+
</plugin>
191+
<plugin>
192+
<groupId>org.sonatype.central</groupId>
193+
<artifactId>central-publishing-maven-plugin</artifactId>
194+
<version>0.9.0</version>
195+
<extensions>true</extensions>
196+
<configuration>
197+
<publishingServerId>ossrh</publishingServerId>
198+
<autoPublish>true</autoPublish>
199+
</configuration>
200+
</plugin>
201+
</plugins>
202+
</build>
203+
</profile>
204+
</profiles>
166205
</project>

0 commit comments

Comments
 (0)