From 3899edad0b378174e8d98d64b56114c73353f5e2 Mon Sep 17 00:00:00 2001 From: Robin Date: Wed, 26 Jun 2024 20:57:09 +0200 Subject: [PATCH] add emi comments and update to NeoGradle 151, no more parchment 'p's --- build.gradle.kts | 16 +++++++++++++++- gradle.properties | 3 ++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 4e068cf..0e20329 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -6,7 +6,7 @@ plugins { idea `maven-publish` id("io.freefair.lombok") version "8.6" - id ("net.neoforged.gradle.userdev") version ("7.0.150") + id ("net.neoforged.gradle.userdev") version ("7.0.151") } val minecraftVersion: String by project @@ -29,6 +29,7 @@ val topVersion: String by project val reiVersion: String by project val jeiVersion: String by project val jeiMcVersion: String by project +val emiVersion: String by project val withTop = true @@ -53,6 +54,10 @@ repositories { url = URI.create("https://maven.architectury.dev/") name = "Architectury" } + maven { + url = URI.create("https://maven.terraformersmc.com/") + name = "TerraformersMC" + } } base { @@ -132,6 +137,9 @@ runs { programArgument ("--nogui") } + // This run config launches GameTestServer and runs all registered gametests, then exits. + // By default, the server will crash when no gametests are provided. + // The gametest system is also enabled by default for other run configs under the /test command. create("gameTestServer") { systemProperty ("forge.enabledGameTestNamespaces", modId) @@ -139,6 +147,10 @@ runs { create("data") { + // example of overriding the workingDirectory set in configureEach above, uncomment if you want to use it + // workingDirectory project.file("run-data") + + // Specify the modid for data generation, where to output the resulting resource, and where to look for existing resources. programArguments.addAll ("--mod", modId, "--all", "--output", file("src/generated/resources/").absolutePath, "--existing", file("src/main/resources/").absolutePath) } @@ -150,6 +162,8 @@ dependencies { compileOnly("mcjty.theoneprobe:theoneprobe:${topVersion}") if (withTop) runtimeOnly("mcjty.theoneprobe:theoneprobe:${topVersion}") +// compileOnly("dev.emi:emi-neoforge:${emiVersion}:api") +// runtimeOnly("dev.emi:emi-neoforge:${emiVersion}") // runtimeOnly("me.shedaniel:RoughlyEnoughItems-neoforge:${reiVersion}") // compileOnly("me.shedaniel:RoughlyEnoughItems-api-neoforge:${reiVersion}") // compileOnly("me.shedaniel:RoughlyEnoughItems-default-plugin-neoforge:${reiVersion}") diff --git a/gradle.properties b/gradle.properties index dce7f2a..3b5d59b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -47,4 +47,5 @@ assertjVersion=3.25.1 topVersion=1.21_neo-12.0.0-1 reiVersion=16.0.729 jeiVersion=19.0.0.11 -jeiMcVersion=1.21 \ No newline at end of file +jeiMcVersion=1.21 +emiVersion=1.1.7+1.21 \ No newline at end of file