Skip to content

Commit e118990

Browse files
committed
Update to Gradle 9.3
1 parent 47ba792 commit e118990

File tree

18 files changed

+63
-41
lines changed

18 files changed

+63
-41
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
java-version: [ 17 ]
15+
java-version: [ 25 ]
1616

1717
steps:
1818
- name: Checkout repository

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This plugin currently supports the following platforms:
1212
* [Velocity](https://velocitypowered.com/)
1313
* [Nukkit](https://cloudburstmc.org/articles/)
1414

15-
> [!INFO]
15+
> [!NOTE]
1616
> NeoForge and Fabric versions of the plugin are available in the [dev/mods branch](https://github.com/Azuriom/AzLink/tree/dev/mods).
1717
1818
## Setup
@@ -23,6 +23,20 @@ The plugin works with the same .jar for all the platforms, except Bukkit/Spigot
2323

2424
You just need to download the plugin, add it to the `plugins` folder of your server, and restart your server.
2525

26+
## Building
27+
28+
AzLink uses [Gradle](https://gradle.org/) for dependency management and builds.
29+
30+
Java **25** JDK or newer is required.
31+
32+
### Compiling from source
33+
34+
```sh
35+
./gradlew build
36+
```
37+
38+
The output JAR files are located in `universal/build/libs` and `universal-legacy/build/libs`.
39+
2640
## PlaceholderAPI Placeholders
2741

2842
On Bukkit-based servers (Spigot, Paper, Folia, ...), AzLink supports [PlaceholderAPI](https://placeholderapi.com/).

bukkit/src/main/java/com/azuriom/azlink/bukkit/placeholders/VotePlaceholderProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public void onPlayerJoin(PlayerJoinEvent event) {
4646

4747
@Override
4848
public void run() {
49-
if (this.pendingRefresh || this.lastUpdate.isBefore(Instant.now().minus(5, ChronoUnit.MINUTES))) {
49+
if (this.pendingRefresh || this.lastUpdate.isBefore(Instant.now().minusSeconds(60))) {
5050
refreshData();
5151
}
5252
}

bungee/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
repositories {
2-
maven { url = 'https://oss.sonatype.org/content/repositories/snapshots/' }
2+
maven { url = 'https://libraries.minecraft.net/' }
33
maven { url = 'https://repo.nickuc.com/maven-releases/' }
44
}
55

66
dependencies {
77
implementation project(':azlink-common')
8-
compileOnly 'net.md-5:bungeecord-api:1.16-R0.4'
8+
compileOnly 'net.md-5:bungeecord-api:1.21-R0.4'
99
compileOnly 'com.nickuc.login:nlogin-api:10.3'
1010
}
1111

bungee/src/main/java/com/azuriom/azlink/bungee/command/BungeeCommandSender.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public UUID getUuid() {
3434
public void sendMessage(String message) {
3535
String formatted = ChatColor.translateAlternateColorCodes('&', message);
3636

37-
this.sender.sendMessage(TextComponent.fromLegacyText(formatted));
37+
this.sender.sendMessage(TextComponent.fromLegacy(formatted));
3838
}
3939

4040
@Override

common/build.gradle

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
plugins {
2+
id 'net.kyori.blossom' version '2.2.0'
3+
id 'org.jetbrains.gradle.plugin.idea-ext' version '1.3'
4+
}
5+
16
repositories {
27
maven { url = 'https://repo.codemc.io/repository/maven-public/' }
38
maven { url = 'https://repo.nickuc.com/maven-releases/' }
@@ -18,3 +23,13 @@ dependencies {
1823
test {
1924
useJUnitPlatform()
2025
}
26+
27+
sourceSets {
28+
main {
29+
blossom {
30+
javaSources {
31+
property('version', project.version.toString())
32+
}
33+
}
34+
}
35+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package com.azuriom.azlink.common.utils;
2+
3+
public class VersionInfo {
4+
public static final String VERSION = "{{ version }}";
5+
}

gradle/wrapper/gradle-wrapper.jar

1.83 KB
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.0-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 5 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)