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