Skip to content

Commit

Permalink
Switch from neogradle to moddevgradle (#446)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpenilla authored Aug 24, 2024
1 parent 7eff995 commit 0cd9b01
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions spark-neoforge/build.gradle
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -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
}
}
}

Expand All @@ -26,7 +40,6 @@ configurations {
}

dependencies {
implementation "net.neoforged:neoforge:21.1.8"
shade project(':spark-common')
}

Expand Down

0 comments on commit 0cd9b01

Please sign in to comment.