2021-11-29 23:16:19 +00:00
|
|
|
// TODO await https://github.com/PaperMC/paperweight/issues/116
|
|
|
|
//applyPaperweightAdapterConfiguration()
|
|
|
|
//
|
|
|
|
//dependencies {
|
|
|
|
// paperDevBundle("1.17.1-R0.1-20211120.192557-194")
|
|
|
|
//}
|
|
|
|
|
|
|
|
// Until the above issue is resolved, we are bundling old versions using their last assembled JAR.
|
|
|
|
// Technically this means we cannot really update them, but that is is the price we pay for supporting older versions.
|
|
|
|
|
|
|
|
|
2021-10-17 14:32:36 +00:00
|
|
|
plugins {
|
2021-11-29 23:16:19 +00:00
|
|
|
base
|
2021-10-17 14:32:36 +00:00
|
|
|
java
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
2021-12-20 21:12:04 +00:00
|
|
|
mavenCentral()
|
2021-10-17 14:32:36 +00:00
|
|
|
maven {
|
|
|
|
name = "PaperMC"
|
|
|
|
url = uri("https://papermc.io/repo/repository/maven-public/")
|
2021-12-20 21:12:04 +00:00
|
|
|
}
|
|
|
|
maven {
|
|
|
|
name = "Athion"
|
|
|
|
url = uri("https://ci.athion.net/plugin/repository/tools/")
|
2021-10-17 14:32:36 +00:00
|
|
|
content {
|
2021-12-20 21:12:04 +00:00
|
|
|
includeModule("io.papermc", "paper-server")
|
2021-10-17 14:32:36 +00:00
|
|
|
}
|
|
|
|
}
|
2021-12-20 21:12:04 +00:00
|
|
|
maven {
|
|
|
|
name = "OSS Sonatype Snapshots"
|
|
|
|
url = uri("https://oss.sonatype.org/content/repositories/snapshots/")
|
|
|
|
}
|
|
|
|
maven {
|
|
|
|
name = "Mojang"
|
|
|
|
url = uri("https://libraries.minecraft.net/")
|
|
|
|
}
|
2021-10-17 14:32:36 +00:00
|
|
|
}
|
|
|
|
|
2021-11-29 23:16:19 +00:00
|
|
|
artifacts {
|
|
|
|
add("default", file("./src/main/resources/worldedit-adapter-1.17.1.jar"))
|
|
|
|
}
|
|
|
|
|
2021-12-20 21:12:04 +00:00
|
|
|
java {
|
|
|
|
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
|
|
|
|
}
|
|
|
|
|
|
|
|
configurations.all {
|
|
|
|
attributes.attribute(TargetJvmVersion.TARGET_JVM_VERSION_ATTRIBUTE, 17)
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2021-10-17 14:32:36 +00:00
|
|
|
dependencies {
|
2021-12-20 21:12:04 +00:00
|
|
|
compileOnly("io.papermc.paper:paper-api:1.17.1-R0.1-SNAPSHOT")
|
|
|
|
compileOnly(project(":worldedit-bukkit"))
|
|
|
|
compileOnly(project(":worldedit-core"))
|
|
|
|
compileOnly("io.papermc:paper-server:1_17_r1_2")
|
2021-10-17 14:32:36 +00:00
|
|
|
compileOnly(libs.paperlib)
|
2021-12-20 21:12:04 +00:00
|
|
|
compileOnly("com.mojang:datafixerupper:4.0.26")
|
|
|
|
compileOnly("com.mojang:authlib:2.3.31")
|
|
|
|
compileOnly("com.mojang:brigadier:1.0.18")
|
|
|
|
compileOnly("io.netty:netty-all:4.1.25.Final")
|
2021-10-17 14:32:36 +00:00
|
|
|
}
|