mirror of
https://github.com/GayPizzaSpecifications/foundation.git
synced 2025-08-03 05:30:55 +00:00
Gradle: Implement setupPaperServer action which downloads Paper and links plugin JARs.
This commit is contained in:
@ -5,9 +5,7 @@ import java.io.FileWriter
|
||||
|
||||
plugins {
|
||||
java
|
||||
id("org.jetbrains.kotlin.jvm") version "1.6.10" apply false
|
||||
id("org.jetbrains.kotlin.plugin.serialization") version "1.6.10" apply false
|
||||
id("com.github.johnrengelman.shadow") version "7.1.1" apply false
|
||||
id("foundation-gradle")
|
||||
}
|
||||
|
||||
fun Project.isFoundationPlugin() = name.startsWith("foundation-")
|
||||
@ -23,6 +21,7 @@ allprojects {
|
||||
name = "papermc-repo"
|
||||
url = uri("https://papermc.io/repo/repository/maven-public/")
|
||||
}
|
||||
|
||||
maven {
|
||||
name = "sonatype"
|
||||
url = uri("https://oss.sonatype.org/content/groups/public/")
|
||||
@ -135,3 +134,8 @@ subprojects {
|
||||
dependsOn("shadowJar")
|
||||
}
|
||||
}
|
||||
|
||||
tasks.setupPaperServer {
|
||||
minecraftServerPath = "server"
|
||||
paperVersionGroup = "1.18"
|
||||
}
|
||||
|
Reference in New Issue
Block a user