Skip to content

Commit

Permalink
Update to ModDevGradle 2
Browse files Browse the repository at this point in the history
  • Loading branch information
thedarkcolour committed Jan 6, 2025
1 parent 6daf933 commit 43b8012
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
9 changes: 6 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
id 'java-library'
id 'idea'
id 'net.neoforged.moddev' version '1.0.17'
id 'net.neoforged.moddev' version '2.0.71'
id("com.modrinth.minotaur") version '2.+'
id("com.matthewprenger.cursegradle") version '1.4.0'
}
Expand All @@ -16,6 +16,8 @@ java.toolchain.languageVersion = JavaLanguageVersion.of(21)
java.toolchain.vendor = JvmVendorSpec.JETBRAINS
java.withSourcesJar()

evaluationDependsOn(":coremod")

neoForge {
version = neo_version

Expand Down Expand Up @@ -55,7 +57,7 @@ neoForge {
sourceSet(sourceSets.main)
}
coremod {
dependency project(':coremod')
sourceSet project(':coremod').sourceSets.main
}
}
}
Expand Down Expand Up @@ -150,7 +152,8 @@ dependencies {
implementation('com.github.thedarkcolour:ModKit:81a0889b26')

// Core mod
implementation(jarJar(project(':coremod')))
implementation(project(':coremod'))
jarJar(project(':coremod'))

// Oculus + Embeddium OPTIONAL
compileOnly('maven.modrinth:oculus:1.20.1-1.6.9')
Expand Down
5 changes: 4 additions & 1 deletion coremod/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ java.toolchain.vendor = JvmVendorSpec.JETBRAINS

jar {
manifest {
attributes(["FMLModType": "LIBRARY"])
attributes([
"FMLModType": "LIBRARY",
"Automatic-Module-Name": "thedarkcolour.exdeorum.coremod"
])
}
}

Expand Down
2 changes: 2 additions & 0 deletions coremod/src/main/resources/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Automatic-Module-Name: thedarkcolour.exdeorum.coremod
FMLModType: LIBRARY

0 comments on commit 43b8012

Please sign in to comment.