mirror of
https://github.com/Shiewk/BlockHistory3.git
synced 2026-04-28 04:24:17 +02:00
(3.1.0) Switch to Paper plugin & support Folia
This commit is contained in:
+20
-7
@@ -1,9 +1,10 @@
|
||||
plugins {
|
||||
id 'java'
|
||||
id("xyz.jpenilla.run-paper") version "2.3.1"
|
||||
}
|
||||
|
||||
group = 'de.shiewk'
|
||||
version = '3.0.1'
|
||||
version = pluginVersion
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
@@ -11,14 +12,11 @@ repositories {
|
||||
name = "papermc-repo"
|
||||
url = "https://repo.papermc.io/repository/maven-public/"
|
||||
}
|
||||
maven {
|
||||
name = "sonatype"
|
||||
url = "https://oss.sonatype.org/content/groups/public/"
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly("io.papermc.paper:paper-api:1.21-R0.1-SNAPSHOT")
|
||||
//compileOnly("io.papermc.paper:paper-api:1.21-R0.1-SNAPSHOT")
|
||||
compileOnly 'dev.folia:folia-api:1.20.6-R0.1-SNAPSHOT'
|
||||
}
|
||||
|
||||
def targetJavaVersion = 21
|
||||
@@ -39,11 +37,26 @@ tasks.withType(JavaCompile).configureEach {
|
||||
}
|
||||
}
|
||||
|
||||
runPaper {
|
||||
folia {
|
||||
registerTask()
|
||||
}
|
||||
}
|
||||
|
||||
runServer {
|
||||
minecraftVersion("1.21.6")
|
||||
downloadPlugins {
|
||||
// for testing from other client versions
|
||||
modrinth("ViaVersion", "5.4.1")
|
||||
modrinth("ViaBackwards", "5.4.1")
|
||||
}
|
||||
}
|
||||
|
||||
processResources {
|
||||
def props = [version: version]
|
||||
inputs.properties props
|
||||
filteringCharset 'UTF-8'
|
||||
filesMatching('plugin.yml') {
|
||||
filesMatching('paper-plugin.yml') {
|
||||
expand props
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user