forked from SteamWar/SteamWar
Upgrade all projects to Java 21 and migrate dependencies to Paper and FastAsyncWorldEdit.
Signed-off-by: Chaoscaot <max@maxsp.de>
This commit is contained in:
@@ -38,10 +38,10 @@ dependencies {
|
|||||||
compileOnly(libs.axiom)
|
compileOnly(libs.axiom)
|
||||||
compileOnly(libs.authlib)
|
compileOnly(libs.authlib)
|
||||||
|
|
||||||
compileOnly(libs.paperapi21)
|
compileOnly(libs.paperapi)
|
||||||
compileOnly(libs.nms21)
|
compileOnly(libs.nms)
|
||||||
|
|
||||||
compileOnly(libs.fawe21)
|
compileOnly(libs.fawe)
|
||||||
compileOnly(libs.netty)
|
compileOnly(libs.netty)
|
||||||
|
|
||||||
implementation(libs.luaj)
|
implementation(libs.luaj)
|
||||||
|
|||||||
@@ -34,13 +34,13 @@ dependencies {
|
|||||||
compileOnly(project(":BauSystem:BauSystem_Main", "default"))
|
compileOnly(project(":BauSystem:BauSystem_Main", "default"))
|
||||||
compileOnly(project(":SpigotCore", "default"))
|
compileOnly(project(":SpigotCore", "default"))
|
||||||
|
|
||||||
compileOnly(libs.spigotapi)
|
compileOnly(libs.paperapi)
|
||||||
compileOnly(libs.axiom)
|
compileOnly(libs.axiom)
|
||||||
compileOnly(libs.authlib)
|
compileOnly(libs.authlib)
|
||||||
compileOnly(libs.viaapi)
|
compileOnly(libs.viaapi)
|
||||||
|
|
||||||
compileOnly(libs.nms20)
|
compileOnly(libs.nms)
|
||||||
compileOnly(libs.fawe18)
|
compileOnly(libs.fawe)
|
||||||
|
|
||||||
implementation(libs.luaj)
|
implementation(libs.luaj)
|
||||||
implementation(files("$projectDir/../libs/YAPION-SNAPSHOT.jar"))
|
implementation(files("$projectDir/../libs/YAPION-SNAPSHOT.jar"))
|
||||||
|
|||||||
@@ -7,11 +7,6 @@ kotlin {
|
|||||||
jvmToolchain(21)
|
jvmToolchain(21)
|
||||||
}
|
}
|
||||||
|
|
||||||
java {
|
|
||||||
sourceCompatibility = JavaVersion.VERSION_21
|
|
||||||
targetCompatibility = JavaVersion.VERSION_21
|
|
||||||
}
|
|
||||||
|
|
||||||
application {
|
application {
|
||||||
mainClass.set("de.steamwar.MainKt")
|
mainClass.set("de.steamwar.MainKt")
|
||||||
applicationName = "sw"
|
applicationName = "sw"
|
||||||
|
|||||||
@@ -32,9 +32,9 @@ dependencies {
|
|||||||
compileOnly(project(":SpigotCore", "default"))
|
compileOnly(project(":SpigotCore", "default"))
|
||||||
|
|
||||||
compileOnly(libs.netty)
|
compileOnly(libs.netty)
|
||||||
compileOnly(libs.paperapi21)
|
compileOnly(libs.paperapi)
|
||||||
compileOnly(libs.fastutil)
|
compileOnly(libs.fastutil)
|
||||||
compileOnly(libs.authlib)
|
compileOnly(libs.authlib)
|
||||||
compileOnly(libs.nms21)
|
compileOnly(libs.nms)
|
||||||
compileOnly(libs.fawe21)
|
compileOnly(libs.fawe)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ tasks.shadowJar {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly(libs.spigotapi)
|
compileOnly(libs.paperapi)
|
||||||
compileOnly(project(":SpigotCore"))
|
compileOnly(project(":SpigotCore"))
|
||||||
|
|
||||||
implementation(libs.exposedCore)
|
implementation(libs.exposedCore)
|
||||||
|
|||||||
@@ -21,20 +21,15 @@ plugins {
|
|||||||
steamwar.java
|
steamwar.java
|
||||||
}
|
}
|
||||||
|
|
||||||
java {
|
|
||||||
sourceCompatibility = JavaVersion.VERSION_21
|
|
||||||
targetCompatibility = JavaVersion.VERSION_21
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly(libs.classindex)
|
compileOnly(libs.classindex)
|
||||||
annotationProcessor(libs.classindex)
|
annotationProcessor(libs.classindex)
|
||||||
compileOnly(project(":SpigotCore", "default"))
|
compileOnly(project(":SpigotCore", "default"))
|
||||||
|
|
||||||
compileOnly(libs.spigotapi)
|
compileOnly(libs.paperapi)
|
||||||
|
|
||||||
compileOnly(libs.nms20)
|
compileOnly(libs.nms)
|
||||||
compileOnly(libs.worldedit15)
|
compileOnly(libs.fawe)
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.register<DevServer>("DevLobby20") {
|
tasks.register<DevServer>("DevLobby20") {
|
||||||
|
|||||||
@@ -21,18 +21,13 @@ plugins {
|
|||||||
steamwar.java
|
steamwar.java
|
||||||
}
|
}
|
||||||
|
|
||||||
java {
|
|
||||||
sourceCompatibility = JavaVersion.VERSION_21
|
|
||||||
targetCompatibility = JavaVersion.VERSION_21
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly(libs.classindex)
|
compileOnly(libs.classindex)
|
||||||
annotationProcessor(libs.classindex)
|
annotationProcessor(libs.classindex)
|
||||||
compileOnly(project(":SpigotCore", "default"))
|
compileOnly(project(":SpigotCore", "default"))
|
||||||
|
|
||||||
compileOnly(libs.spigotapi)
|
compileOnly(libs.paperapi)
|
||||||
|
|
||||||
compileOnly(libs.nms20)
|
compileOnly(libs.nms)
|
||||||
compileOnly(libs.fawe21)
|
compileOnly(libs.worldedit)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,5 +22,5 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly(libs.spigotapi)
|
compileOnly(libs.paperapi)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,16 +27,11 @@ tasks.build {
|
|||||||
finalizedBy(tasks.shadowJar)
|
finalizedBy(tasks.shadowJar)
|
||||||
}
|
}
|
||||||
|
|
||||||
java {
|
|
||||||
sourceCompatibility = JavaVersion.VERSION_21
|
|
||||||
targetCompatibility = JavaVersion.VERSION_21
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly(libs.classindex)
|
compileOnly(libs.classindex)
|
||||||
annotationProcessor(libs.classindex)
|
annotationProcessor(libs.classindex)
|
||||||
compileOnly(project(":SpigotCore", "default"))
|
compileOnly(project(":SpigotCore", "default"))
|
||||||
|
|
||||||
compileOnly(libs.paperapi21)
|
compileOnly(libs.paperapi)
|
||||||
compileOnly(libs.worldedit15)
|
compileOnly(libs.fawe)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -47,14 +47,13 @@ dependencies {
|
|||||||
compileOnly(project(":CommandFramework", "default"))
|
compileOnly(project(":CommandFramework", "default"))
|
||||||
compileOnly(project(":SpigotCore:CRIUDummy", "default"))
|
compileOnly(project(":SpigotCore:CRIUDummy", "default"))
|
||||||
|
|
||||||
compileOnly(libs.fawe21)
|
compileOnly(libs.fawe)
|
||||||
|
|
||||||
compileOnly(libs.paperapi21)
|
compileOnly(libs.paperapi)
|
||||||
compileOnly(libs.nms21)
|
compileOnly(libs.nms)
|
||||||
compileOnly(libs.authlib2)
|
compileOnly(libs.authlib)
|
||||||
compileOnly(libs.datafixer)
|
compileOnly(libs.datafixer)
|
||||||
compileOnly(libs.netty)
|
compileOnly(libs.netty)
|
||||||
compileOnly(libs.authlib)
|
|
||||||
compileOnly(libs.brigadier)
|
compileOnly(libs.brigadier)
|
||||||
compileOnly(libs.fastutil)
|
compileOnly(libs.fastutil)
|
||||||
|
|
||||||
|
|||||||
@@ -25,13 +25,8 @@ kotlin {
|
|||||||
jvmToolchain(21)
|
jvmToolchain(21)
|
||||||
}
|
}
|
||||||
|
|
||||||
java {
|
|
||||||
sourceCompatibility = JavaVersion.VERSION_21
|
|
||||||
targetCompatibility = JavaVersion.VERSION_21
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly(libs.paperapi21)
|
compileOnly(libs.paperapi)
|
||||||
compileOnly(project(":SpigotCore", "default"))
|
compileOnly(project(":SpigotCore", "default"))
|
||||||
compileOnly(project(":KotlinCore", "default"))
|
compileOnly(project(":KotlinCore", "default"))
|
||||||
}
|
}
|
||||||
@@ -21,18 +21,13 @@ plugins {
|
|||||||
steamwar.java
|
steamwar.java
|
||||||
}
|
}
|
||||||
|
|
||||||
java {
|
|
||||||
sourceCompatibility = JavaVersion.VERSION_21
|
|
||||||
targetCompatibility = JavaVersion.VERSION_21
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly(libs.classindex)
|
compileOnly(libs.classindex)
|
||||||
annotationProcessor(libs.classindex)
|
annotationProcessor(libs.classindex)
|
||||||
compileOnly(project(":SpigotCore", "default"))
|
compileOnly(project(":SpigotCore", "default"))
|
||||||
|
|
||||||
compileOnly(libs.spigotapi)
|
compileOnly(libs.paperapi)
|
||||||
|
|
||||||
compileOnly(libs.worldedit15)
|
compileOnly(libs.fawe)
|
||||||
compileOnly(libs.axiom)
|
compileOnly(libs.axiom)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,11 +21,6 @@ plugins {
|
|||||||
steamwar.java
|
steamwar.java
|
||||||
}
|
}
|
||||||
|
|
||||||
java {
|
|
||||||
sourceCompatibility = JavaVersion.VERSION_21
|
|
||||||
targetCompatibility = JavaVersion.VERSION_21
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
annotationProcessor(libs.spigotannotations)
|
annotationProcessor(libs.spigotannotations)
|
||||||
compileOnly(libs.spigotannotations)
|
compileOnly(libs.spigotannotations)
|
||||||
@@ -34,8 +29,8 @@ dependencies {
|
|||||||
|
|
||||||
compileOnly(project(":SpigotCore", "default"))
|
compileOnly(project(":SpigotCore", "default"))
|
||||||
|
|
||||||
compileOnly(libs.nms19)
|
compileOnly(libs.nms)
|
||||||
compileOnly(libs.worldedit15)
|
compileOnly(libs.fawe)
|
||||||
|
|
||||||
compileOnly(libs.spigotapi)
|
compileOnly(libs.paperapi)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,11 +26,6 @@ tasks.build {
|
|||||||
finalizedBy(tasks.shadowJar)
|
finalizedBy(tasks.shadowJar)
|
||||||
}
|
}
|
||||||
|
|
||||||
java {
|
|
||||||
sourceCompatibility = JavaVersion.VERSION_17
|
|
||||||
targetCompatibility = JavaVersion.VERSION_17
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly(libs.classindex)
|
compileOnly(libs.classindex)
|
||||||
annotationProcessor(libs.classindex)
|
annotationProcessor(libs.classindex)
|
||||||
|
|||||||
@@ -22,8 +22,8 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
java {
|
java {
|
||||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
sourceCompatibility = JavaVersion.VERSION_21
|
||||||
targetCompatibility = JavaVersion.VERSION_1_8
|
targetCompatibility = JavaVersion.VERSION_21
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.compileJava {
|
tasks.compileJava {
|
||||||
|
|||||||
@@ -27,8 +27,8 @@ kotlin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
java {
|
java {
|
||||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
sourceCompatibility = JavaVersion.VERSION_21
|
||||||
targetCompatibility = JavaVersion.VERSION_1_8
|
targetCompatibility = JavaVersion.VERSION_21
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.compileJava {
|
tasks.compileJava {
|
||||||
|
|||||||
+14
-21
@@ -34,6 +34,14 @@ dependencyResolutionManagement {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
maven {
|
||||||
|
url = URI("https://maven.enginehub.org/repo")
|
||||||
|
content {
|
||||||
|
includeGroup("com.sk89q.worldedit")
|
||||||
|
includeGroup("com.sk89q.worldedit.worldedit-libs")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
maven {
|
maven {
|
||||||
if (isInCi) {
|
if (isInCi) {
|
||||||
url = URI("file:///var/www/maven/")
|
url = URI("file:///var/www/maven/")
|
||||||
@@ -101,33 +109,18 @@ dependencyResolutionManagement {
|
|||||||
library("hamcrest", "org.hamcrest:hamcrest:2.2")
|
library("hamcrest", "org.hamcrest:hamcrest:2.2")
|
||||||
library("classindex", "org.atteo.classindex:classindex:3.13")
|
library("classindex", "org.atteo.classindex:classindex:3.13")
|
||||||
|
|
||||||
|
library("paperapi", "io.papermc.paper:paper-api:1.21.6-R0.1-SNAPSHOT")
|
||||||
library("spigotapi", "org.spigotmc:spigot-api:1.20-R0.1-SNAPSHOT")
|
|
||||||
library("spigotannotations", "org.spigotmc:plugin-annotations:1.2.3-SNAPSHOT")
|
library("spigotannotations", "org.spigotmc:plugin-annotations:1.2.3-SNAPSHOT")
|
||||||
library("paperapi", "io.papermc.paper:paper-api:1.19.2-R0.1-SNAPSHOT")
|
library("authlib", "com.mojang:authlib:6.0.58")
|
||||||
library("paperapi21", "io.papermc.paper:paper-api:1.21.6-R0.1-SNAPSHOT")
|
|
||||||
library("authlib", "com.mojang:authlib:1.5.25")
|
|
||||||
library("authlib2", "com.mojang:authlib:6.0.58")
|
|
||||||
library("datafixer", "com.mojang:datafixerupper:4.0.26")
|
library("datafixer", "com.mojang:datafixerupper:4.0.26")
|
||||||
library("brigadier", "com.mojang:brigadier:1.0.18")
|
library("brigadier", "com.mojang:brigadier:1.0.18")
|
||||||
library("anvilgui", "net.wesjd:anvilgui:1.10.6-SNAPSHOT")
|
library("anvilgui", "net.wesjd:anvilgui:1.10.6-SNAPSHOT")
|
||||||
|
|
||||||
library("nms8", "de.steamwar:spigot:1.8")
|
library("nms", "de.steamwar:spigot:1.21.6")
|
||||||
library("nms9", "de.steamwar:spigot:1.9")
|
|
||||||
library("nms10", "de.steamwar:spigot:1.10")
|
|
||||||
library("nms12", "de.steamwar:spigot:1.12")
|
|
||||||
library("nms14", "de.steamwar:spigot:1.14")
|
|
||||||
library("nms15", "de.steamwar:spigot:1.15")
|
|
||||||
library("nms18", "de.steamwar:spigot:1.18")
|
|
||||||
library("nms19", "de.steamwar:spigot:1.19")
|
|
||||||
library("nms20", "de.steamwar:spigot:1.20")
|
|
||||||
library("nms21", "de.steamwar:spigot:1.21.6")
|
|
||||||
|
|
||||||
library("axiom", "de.steamwar:axiompaper:RELEASE")
|
library("axiom", "de.steamwar:axiompaper:RELEASE")
|
||||||
library("worldedit12", "de.steamwar:worldedit:1.12")
|
library("worldedit", "com.sk89q.worldedit:worldedit-bukkit:7.3.16")
|
||||||
library("worldedit15", "de.steamwar:worldedit:1.15")
|
library("fawe", "de.steamwar:fastasyncworldedit:1.21")
|
||||||
library("fawe18", "de.steamwar:fastasyncworldedit:1.18")
|
|
||||||
library("fawe21", "de.steamwar:fastasyncworldedit:1.21")
|
|
||||||
|
|
||||||
library("velocity", "de.steamwar:velocity:RELEASE")
|
library("velocity", "de.steamwar:velocity:RELEASE")
|
||||||
library("velocityapi", "com.velocitypowered:velocity-api:3.3.0-SNAPSHOT")
|
library("velocityapi", "com.velocitypowered:velocity-api:3.3.0-SNAPSHOT")
|
||||||
@@ -161,7 +154,7 @@ dependencyResolutionManagement {
|
|||||||
|
|
||||||
library("nbt", "dev.dewy:nbt:1.5.1")
|
library("nbt", "dev.dewy:nbt:1.5.1")
|
||||||
|
|
||||||
val exposedVersion = "1.0.0-rc-2"
|
val exposedVersion = "1.3.0"
|
||||||
library("exposedCore", "org.jetbrains.exposed:exposed-core:$exposedVersion")
|
library("exposedCore", "org.jetbrains.exposed:exposed-core:$exposedVersion")
|
||||||
library("exposedDao", "org.jetbrains.exposed:exposed-dao:$exposedVersion")
|
library("exposedDao", "org.jetbrains.exposed:exposed-dao:$exposedVersion")
|
||||||
library("exposedJdbc", "org.jetbrains.exposed:exposed-jdbc:$exposedVersion")
|
library("exposedJdbc", "org.jetbrains.exposed:exposed-jdbc:$exposedVersion")
|
||||||
|
|||||||
Reference in New Issue
Block a user