From 0cd9b01e0106e03f28d18354cec319ad3d2cd8e5 Mon Sep 17 00:00:00 2001 From: Jason Penilla <11360596+jpenilla@users.noreply.github.com> Date: Sat, 24 Aug 2024 01:23:07 -0700 Subject: [PATCH] Switch from neogradle to moddevgradle (#446) --- spark-neoforge/build.gradle | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/spark-neoforge/build.gradle b/spark-neoforge/build.gradle index ee90d393..fc50a85c 100644 --- a/spark-neoforge/build.gradle +++ b/spark-neoforge/build.gradle @@ -1,6 +1,6 @@ plugins { id 'com.gradleup.shadow' version '8.3.0' - id 'net.neoforged.gradle.userdev' version '7.0.145' + id 'net.neoforged.moddev' version '1.0.19' } tasks.withType(JavaCompile).configureEach { @@ -14,9 +14,23 @@ java { } } -minecraft { - accessTransformers { - file('src/main/resources/META-INF/accesstransformer.cfg') +neoForge { + version = "21.1.22" + validateAccessTransformers = true + + runs { + client { + client() + } + server { + server() + } + } + + mods { + spark { + sourceSet sourceSets.main + } } } @@ -26,7 +40,6 @@ configurations { } dependencies { - implementation "net.neoforged:neoforge:21.1.8" shade project(':spark-common') }