forked from SteamWar/SteamWar
Fix KotlinCore
This commit is contained in:
@@ -18,19 +18,14 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id("java")
|
steamwar.java
|
||||||
kotlin("jvm") version "2.0.0"
|
kotlin("jvm") version "2.0.0"
|
||||||
|
alias(libs.plugins.shadow)
|
||||||
id("com.github.johnrengelman.shadow")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
group = "de.steamwar"
|
group = "de.steamwar"
|
||||||
version = ""
|
version = ""
|
||||||
|
|
||||||
tasks.compileJava {
|
|
||||||
options.encoding = "UTF-8"
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.build {
|
tasks.build {
|
||||||
finalizedBy(tasks.shadowJar)
|
finalizedBy(tasks.shadowJar)
|
||||||
}
|
}
|
||||||
@@ -44,22 +39,10 @@ java {
|
|||||||
targetCompatibility = JavaVersion.VERSION_21
|
targetCompatibility = JavaVersion.VERSION_21
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceSets {
|
|
||||||
main {
|
|
||||||
java {
|
|
||||||
srcDirs("src/")
|
|
||||||
}
|
|
||||||
resources {
|
|
||||||
srcDirs("src/")
|
|
||||||
exclude("**/*.java", "**/*.kt")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(kotlin("reflect"))
|
implementation(kotlin("reflect"))
|
||||||
|
|
||||||
compileOnly("io.papermc.paper:paper-api:1.21-R0.1-SNAPSHOT")
|
compileOnly(libs.paperapi21)
|
||||||
}
|
}
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
|
|||||||
@@ -89,6 +89,7 @@ dependencyResolutionManagement {
|
|||||||
includeGroup("org.spigotmc")
|
includeGroup("org.spigotmc")
|
||||||
includeGroup("io.papermc.paper")
|
includeGroup("io.papermc.paper")
|
||||||
includeGroup("com.velocitypowered")
|
includeGroup("com.velocitypowered")
|
||||||
|
includeGroup("net.md-5")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
@@ -113,6 +114,7 @@ dependencyResolutionManagement {
|
|||||||
library("spigotapi", "org.spigotmc:spigot-api:1.20-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("paperapi", "io.papermc.paper:paper-api:1.19.2-R0.1-SNAPSHOT")
|
||||||
|
library("paperapi21", "io.papermc.paper:paper-api:1.21-R0.1-SNAPSHOT")
|
||||||
library("authlib", "com.mojang:authlib:1.5.25")
|
library("authlib", "com.mojang:authlib:1.5.25")
|
||||||
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")
|
||||||
|
|||||||
Reference in New Issue
Block a user