Update build.gradle.kts
This commit is contained in:
parent
5202301fdb
commit
5c3bbf4203
|
|
@ -7,13 +7,13 @@ import net.minecrell.pluginyml.paper.PaperPluginDescription
|
|||
plugins {
|
||||
id("java")
|
||||
id("java-library")
|
||||
id("de.eldoria.plugin-yml.paper") version "0.8.0"
|
||||
id("de.eldoria.plugin-yml.paper") version "0.9.0"
|
||||
id("xyz.jpenilla.run-paper") version "1.0.6"
|
||||
id("maven-publish")
|
||||
}
|
||||
|
||||
group = "com.alttd.playershops"
|
||||
version = System.getenv("BUILD_NUMBER") ?: "1.3-SNAPSHOT"
|
||||
version = System.getenv("BUILD_NUMBER") ?: "1.4-SNAPSHOT"
|
||||
description = "Player Shop plugin for Altitude."
|
||||
|
||||
apply<JavaLibraryPlugin>()
|
||||
|
|
@ -29,16 +29,17 @@ tasks {
|
|||
}
|
||||
|
||||
runServer {
|
||||
val fileName = "./run/cosmos.jar"
|
||||
val file = File(fileName)
|
||||
if (!file.parentFile.exists()) {
|
||||
file.parentFile.mkdirs()
|
||||
}
|
||||
if (!file.exists()) {
|
||||
// download("https://jenkins.destro.xyz/job/Cosmos/lastSuccessfulBuild/artifact/cosmos-server/build/libs/cosmos-bundler-1.21.11-R0.1-SNAPSHOT-mojmap.jar", fileName)
|
||||
val dir = File(System.getProperty("user.home") + "/share/devserver/")
|
||||
if (!dir.parentFile.exists()) {
|
||||
dir.parentFile.mkdirs()
|
||||
}
|
||||
runDirectory.set(dir)
|
||||
|
||||
val fileName = "/cosmos.jar"
|
||||
val file = File(dir.path + fileName)
|
||||
|
||||
serverJar(file)
|
||||
minecraftVersion("1.21")
|
||||
minecraftVersion("26.2")
|
||||
}
|
||||
|
||||
jar {
|
||||
|
|
@ -73,8 +74,8 @@ dependencies {
|
|||
}
|
||||
compileOnly("com.github.TechFortress:GriefPrevention:16.17.1")
|
||||
|
||||
compileOnly("org.projectlombok:lombok:1.18.30")
|
||||
annotationProcessor("org.projectlombok:lombok:1.18.30")
|
||||
compileOnly("org.projectlombok:lombok:1.18.46")
|
||||
annotationProcessor("org.projectlombok:lombok:1.18.46")
|
||||
}
|
||||
|
||||
fun download(link: String, path: String) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user