Skip to content

Commit 8f756a5

Browse files
committed
Migrate to Central Portal for Maven Central publishing
1 parent b1af036 commit 8f756a5

File tree

2 files changed

+17
-18
lines changed

2 files changed

+17
-18
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Lightweight packet-based scoreboard API for Bukkit plugins, compatible with all
1313

1414
* No flickering (without using a buffer)
1515
* Compatible with all Minecraft versions starting with 1.7.10
16-
* Small (around 750 lines of code with the JavaDoc) and no dependencies
16+
* Small (around 750 lines of code with the Javadoc) and no dependencies
1717
* Easy to use
1818
* Dynamic scoreboard size: you don't need to add/remove lines, you can directly give a string list (or array) to change all the lines
1919
* Everything is at the packet level, so it works with other plugins using scoreboard and/or teams
@@ -47,7 +47,7 @@ Lightweight packet-based scoreboard API for Bukkit plugins, compatible with all
4747
<relocations>
4848
<relocation>
4949
<pattern>fr.mrmicky.fastboard</pattern>
50-
<!-- Replace 'com.yourpackage' with the package of your plugin ! -->
50+
<!-- Replace 'com.yourpackage' with the package of your plugin -->
5151
<shadedPattern>com.yourpackage.fastboard</shadedPattern>
5252
</relocation>
5353
</relocations>
@@ -67,6 +67,7 @@ Lightweight packet-based scoreboard API for Bukkit plugins, compatible with all
6767

6868
> [!NOTE]
6969
> When using Maven, make sure to build directly with Maven and not with your IDE configuration (on IntelliJ IDEA: in the `Maven` tab on the right, in `Lifecycle`, use `package`).
70+
> The output jar file is located in the `target/` folder of your project.
7071
7172
### Gradle
7273

@@ -97,7 +98,7 @@ Copy `FastBoardBase.java`, `FastBoard.java` and `FastReflection.java` in your pl
9798

9899
### Creating a scoreboard
99100

100-
Simply create a new `FastBoard` and update the title and the lines:
101+
Create a new `FastBoard` and update the title and the lines:
101102

102103
```java
103104
FastBoard board = new FastBoard(player);
@@ -210,7 +211,7 @@ Passing a `null` value as a score will result in a reset to the default blank fo
210211

211212
When using ViaBackwards on a post-1.13 server with pre-1.13 clients, older clients
212213
may receive incomplete lines. To solve this problem, you can override the `hasLinesMaxLength()` method and return `true` for older clients.
213-
For example using the ViaVersion API:
214+
For example, using the ViaVersion API:
214215
```java
215216
FastBoard board = new FastBoard(player) {
216217
@Override

pom.xml

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,6 @@
3333
<url>https://github.com/MrMicky-FR/FastBoard</url>
3434
</scm>
3535

36-
<distributionManagement>
37-
<snapshotRepository>
38-
<id>ossrh</id>
39-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots/</url>
40-
</snapshotRepository>
41-
<repository>
42-
<id>ossrh</id>
43-
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
44-
</repository>
45-
</distributionManagement>
46-
4736
<properties>
4837
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
4938
</properties>
@@ -98,7 +87,7 @@
9887
<plugin>
9988
<groupId>org.apache.maven.plugins</groupId>
10089
<artifactId>maven-source-plugin</artifactId>
101-
<version>3.2.1</version>
90+
<version>3.3.1</version>
10291
<executions>
10392
<execution>
10493
<id>attach-sources</id>
@@ -111,7 +100,7 @@
111100
<plugin>
112101
<groupId>org.apache.maven.plugins</groupId>
113102
<artifactId>maven-javadoc-plugin</artifactId>
114-
<version>3.2.0</version>
103+
<version>3.11.2</version>
115104
<executions>
116105
<execution>
117106
<id>attach-javadocs</id>
@@ -128,10 +117,19 @@
128117
<id>release</id>
129118
<build>
130119
<plugins>
120+
<plugin>
121+
<groupId>org.sonatype.central</groupId>
122+
<artifactId>central-publishing-maven-plugin</artifactId>
123+
<version>0.8.0</version>
124+
<extensions>true</extensions>
125+
<configuration>
126+
<publishingServerId>central</publishingServerId>
127+
</configuration>
128+
</plugin>
131129
<plugin>
132130
<groupId>org.apache.maven.plugins</groupId>
133131
<artifactId>maven-gpg-plugin</artifactId>
134-
<version>1.6</version>
132+
<version>3.2.7</version>
135133
<executions>
136134
<execution>
137135
<id>sign-artifacts</id>

0 commit comments

Comments
 (0)