add emi comments and update to NeoGradle 151, no more parchment 'p's

This commit is contained in:
Robin 2024-06-26 20:57:09 +02:00
parent a22b1da189
commit 3899edad0b
2 changed files with 17 additions and 2 deletions

View File

@ -6,7 +6,7 @@ plugins {
idea idea
`maven-publish` `maven-publish`
id("io.freefair.lombok") version "8.6" 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 val minecraftVersion: String by project
@ -29,6 +29,7 @@ val topVersion: String by project
val reiVersion: String by project val reiVersion: String by project
val jeiVersion: String by project val jeiVersion: String by project
val jeiMcVersion: String by project val jeiMcVersion: String by project
val emiVersion: String by project
val withTop = true val withTop = true
@ -53,6 +54,10 @@ repositories {
url = URI.create("https://maven.architectury.dev/") url = URI.create("https://maven.architectury.dev/")
name = "Architectury" name = "Architectury"
} }
maven {
url = URI.create("https://maven.terraformersmc.com/")
name = "TerraformersMC"
}
} }
base { base {
@ -132,6 +137,9 @@ runs {
programArgument ("--nogui") 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") { create("gameTestServer") {
systemProperty ("forge.enabledGameTestNamespaces", modId) systemProperty ("forge.enabledGameTestNamespaces", modId)
@ -139,6 +147,10 @@ runs {
create("data") { 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) 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}") compileOnly("mcjty.theoneprobe:theoneprobe:${topVersion}")
if (withTop) if (withTop)
runtimeOnly("mcjty.theoneprobe:theoneprobe:${topVersion}") runtimeOnly("mcjty.theoneprobe:theoneprobe:${topVersion}")
// compileOnly("dev.emi:emi-neoforge:${emiVersion}:api")
// runtimeOnly("dev.emi:emi-neoforge:${emiVersion}")
// runtimeOnly("me.shedaniel:RoughlyEnoughItems-neoforge:${reiVersion}") // runtimeOnly("me.shedaniel:RoughlyEnoughItems-neoforge:${reiVersion}")
// compileOnly("me.shedaniel:RoughlyEnoughItems-api-neoforge:${reiVersion}") // compileOnly("me.shedaniel:RoughlyEnoughItems-api-neoforge:${reiVersion}")
// compileOnly("me.shedaniel:RoughlyEnoughItems-default-plugin-neoforge:${reiVersion}") // compileOnly("me.shedaniel:RoughlyEnoughItems-default-plugin-neoforge:${reiVersion}")

View File

@ -47,4 +47,5 @@ assertjVersion=3.25.1
topVersion=1.21_neo-12.0.0-1 topVersion=1.21_neo-12.0.0-1
reiVersion=16.0.729 reiVersion=16.0.729
jeiVersion=19.0.0.11 jeiVersion=19.0.0.11
jeiMcVersion=1.21 jeiMcVersion=1.21
emiVersion=1.1.7+1.21