Skip to content

Commit

Permalink
Add full compatibility to latest minecraft versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
imDMK committed Jul 26, 2024
1 parent b867b87 commit 2801fa4
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![Build Status](https://github.com/imDMK/SpentTime/actions/workflows/gradle.yml/badge.svg)](https://github.com/imDMK/SpentTime/actions/workflows/gradle.yml)
![JDK](https://img.shields.io/badge/JDK-1.17-blue.svg)
![Supported versions](https://img.shields.io/badge/Minecraft-1.17--1.20.1-green.svg)
![Supported versions](https://img.shields.io/badge/Minecraft-1.17--1.21-green.svg)
[![SpigotMC](https://img.shields.io/badge/SpigotMC-yellow.svg)](https://www.spigotmc.org/resources/spenttime.111938/)
[![Bukkit](https://img.shields.io/badge/Bukkit-blue.svg)](https://dev.bukkit.org/projects/spenttime)
[![PaperMC](https://img.shields.io/badge/Paper-004ee9.svg)](https://hangar.papermc.io/imDMK/SpentTime)
Expand Down
38 changes: 19 additions & 19 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,19 @@ repositories {
}

dependencies {
compileOnly("org.spigotmc:spigot-api:1.20.4-R0.1-SNAPSHOT")
compileOnly("org.spigotmc:spigot-api:1.21-R0.1-SNAPSHOT")
compileOnly("me.clip:placeholderapi:2.11.5")

implementation("dev.triumphteam:triumph-gui:3.1.7")
implementation("dev.triumphteam:triumph-gui:3.1.10")

implementation("eu.okaeri:okaeri-configs-yaml-snakeyaml:5.0.1")
implementation("eu.okaeri:okaeri-configs-serdes-commons:5.0.1")
implementation("eu.okaeri:okaeri-configs-serdes-bukkit:5.0.1")
implementation("eu.okaeri:okaeri-configs-yaml-snakeyaml:5.0.2")
implementation("eu.okaeri:okaeri-configs-serdes-commons:5.0.2")
implementation("eu.okaeri:okaeri-configs-serdes-bukkit:5.0.2")

implementation("net.kyori:adventure-platform-bukkit:4.3.2")
implementation("net.kyori:adventure-text-minimessage:4.16.0")
implementation("net.kyori:adventure-platform-bukkit:4.3.3")
implementation("net.kyori:adventure-text-minimessage:4.17.0")

implementation("dev.rollczi:litecommands-bukkit:3.4.0")
implementation("dev.rollczi:litecommands-bukkit:3.4.2")
implementation("dev.rollczi:litecommands-annotations:3.4.0")

implementation("com.zaxxer:HikariCP:5.1.0")
Expand All @@ -49,17 +49,8 @@ dependencies {
testImplementation("com.google.guava:guava-testlib:33.1.0-jre")
}

tasks.test {
useJUnitPlatform()
}

tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}

java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
}

bukkit {
Expand All @@ -78,6 +69,16 @@ checkstyle {
configFile = file("${rootDir}/checkstyle.xml")
}

tasks.test {
useJUnitPlatform()
}

tasks.withType<JavaCompile> {
options.compilerArgs = listOf("-Xlint:deprecation", "-parameters")
options.encoding = "UTF-8"
options.release = 17
}

tasks.withType<ShadowJar> {
archiveFileName.set("${project.name} v${project.version}.jar")

Expand All @@ -97,7 +98,6 @@ tasks.withType<ShadowJar> {
"dev.triumphteam",
"dev.rollczi",
"com.eternalcode",
"com.google.gson",
"com.j256",
"com.zaxxer",
"eu.okaeri",
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down

0 comments on commit 2801fa4

Please sign in to comment.