Update to ModDevGradle 2
This commit is contained in:
parent
6daf933eeb
commit
43b801220d
|
|
@ -1,7 +1,7 @@
|
||||||
plugins {
|
plugins {
|
||||||
id 'java-library'
|
id 'java-library'
|
||||||
id 'idea'
|
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.modrinth.minotaur") version '2.+'
|
||||||
id("com.matthewprenger.cursegradle") version '1.4.0'
|
id("com.matthewprenger.cursegradle") version '1.4.0'
|
||||||
}
|
}
|
||||||
|
|
@ -16,6 +16,8 @@ java.toolchain.languageVersion = JavaLanguageVersion.of(21)
|
||||||
java.toolchain.vendor = JvmVendorSpec.JETBRAINS
|
java.toolchain.vendor = JvmVendorSpec.JETBRAINS
|
||||||
java.withSourcesJar()
|
java.withSourcesJar()
|
||||||
|
|
||||||
|
evaluationDependsOn(":coremod")
|
||||||
|
|
||||||
neoForge {
|
neoForge {
|
||||||
version = neo_version
|
version = neo_version
|
||||||
|
|
||||||
|
|
@ -55,7 +57,7 @@ neoForge {
|
||||||
sourceSet(sourceSets.main)
|
sourceSet(sourceSets.main)
|
||||||
}
|
}
|
||||||
coremod {
|
coremod {
|
||||||
dependency project(':coremod')
|
sourceSet project(':coremod').sourceSets.main
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -150,7 +152,8 @@ dependencies {
|
||||||
implementation('com.github.thedarkcolour:ModKit:81a0889b26')
|
implementation('com.github.thedarkcolour:ModKit:81a0889b26')
|
||||||
|
|
||||||
// Core mod
|
// Core mod
|
||||||
implementation(jarJar(project(':coremod')))
|
implementation(project(':coremod'))
|
||||||
|
jarJar(project(':coremod'))
|
||||||
|
|
||||||
// Oculus + Embeddium OPTIONAL
|
// Oculus + Embeddium OPTIONAL
|
||||||
compileOnly('maven.modrinth:oculus:1.20.1-1.6.9')
|
compileOnly('maven.modrinth:oculus:1.20.1-1.6.9')
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,10 @@ java.toolchain.vendor = JvmVendorSpec.JETBRAINS
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
manifest {
|
manifest {
|
||||||
attributes(["FMLModType": "LIBRARY"])
|
attributes([
|
||||||
|
"FMLModType": "LIBRARY",
|
||||||
|
"Automatic-Module-Name": "thedarkcolour.exdeorum.coremod"
|
||||||
|
])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
2
coremod/src/main/resources/META-INF/MANIFEST.MF
Normal file
2
coremod/src/main/resources/META-INF/MANIFEST.MF
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
Automatic-Module-Name: thedarkcolour.exdeorum.coremod
|
||||||
|
FMLModType: LIBRARY
|
||||||
Loading…
Reference in New Issue
Block a user