3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-05 02:50:05 +01:00

feat: Setup project structure for 1.18

Dieser Commit ist enthalten in:
NotMyFault 2021-11-30 00:16:19 +01:00
Ursprung 0b45248b8c
Commit 38130f701c
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 158F5701A6AAD00C
7 geänderte Dateien mit 44 neuen und 13 gelöschten Zeilen

Datei anzeigen

@ -8,14 +8,17 @@ plugins {
repositories {
mavenCentral()
gradlePluginPortal()
maven {
name = "PaperMC"
url = uri("https://papermc.io/repo/repository/maven-public/")
}
maven {
name = "EngineHub"
url = uri("https://maven.enginehub.org/repo/")
}
maven {
name = "PaperMC"
url = uri("https://papermc.io/repo/repository/maven-public/")
content {
includeGroupByRegex("io\\.papermc\\..*")
}
}
}
val properties = Properties().also { props ->
@ -28,7 +31,7 @@ dependencies {
implementation(gradleApi())
implementation("org.ajoberstar.grgit:grgit-gradle:4.1.0")
implementation("gradle.plugin.com.github.johnrengelman:shadow:7.1.0")
implementation("io.papermc.paperweight.userdev:io.papermc.paperweight.userdev.gradle.plugin:1.2.0")
implementation("io.papermc.paperweight.userdev:io.papermc.paperweight.userdev.gradle.plugin:1.3.0-SNAPSHOT")
}
kotlin {

Datei anzeigen

@ -5,9 +5,7 @@ import org.gradle.kotlin.dsl.dependencies
// For specific version pinning, see
// https://papermc.io/repo/service/rest/repository/browse/maven-public/io/papermc/paper/dev-bundle/
fun Project.applyPaperweightAdapterConfiguration(
paperVersion: String
) {
fun Project.applyPaperweightAdapterConfiguration() {
applyCommonConfiguration()
apply(plugin = "java-library")
applyCommonJavaConfiguration(
@ -17,7 +15,6 @@ fun Project.applyPaperweightAdapterConfiguration(
apply(plugin = "io.papermc.paperweight.userdev")
dependencies {
paperDevBundle(paperVersion)
"implementation"(project(":worldedit-bukkit"))
}

Datei anzeigen

@ -52,6 +52,7 @@ fun Project.applyLibrariesConfiguration() {
dependencies {
exclude(dependency("com.google.guava:guava"))
exclude(dependency("com.google.code.gson:gson"))
exclude(dependency("com.google.errorprone:error_prone_annotations"))
exclude(dependency("org.checkerframework:checker-qual"))
exclude(dependency("org.apache.logging.log4j:log4j-api"))
exclude(dependency("com.google.code.findbugs:jsr305"))

Datei anzeigen

@ -4,6 +4,7 @@ include("worldedit-libs")
include("worldedit-bukkit:adapters:adapter-legacy")
include("worldedit-bukkit:adapters:adapter-1_17_1")
include("worldedit-bukkit:adapters:adapter-1_18")
listOf("bukkit", "core", "cli").forEach {
include("worldedit-libs:$it")

Datei anzeigen

@ -1,11 +1,19 @@
// 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.
plugins {
base
java
}
applyPaperweightAdapterConfiguration(
"1.17.1-R0.1-20211120.192557-194"
)
repositories {
maven {
name = "PaperMC"
@ -16,6 +24,10 @@ repositories {
}
}
artifacts {
add("default", file("./src/main/resources/worldedit-adapter-1.17.1.jar"))
}
dependencies {
compileOnly(libs.paperlib)
}

Datei anzeigen

@ -0,0 +1,17 @@
plugins {
java
}
applyPaperweightAdapterConfiguration()
repositories {
maven {
name = "PaperMC"
url = uri("https://papermc.io/repo/repository/maven-public/")
}
}
dependencies {
paperDevBundle("1.18-rc3-R0.1-SNAPSHOT")
compileOnly(libs.paperlib)
}