[FEAT] Fabric/NeoForge Template
This commit is contained in:
56
NeoForge/build.gradle
Normal file
56
NeoForge/build.gradle
Normal file
@@ -0,0 +1,56 @@
|
||||
// Adjust the output jar name here
|
||||
archivesBaseName = "${mod_name}-NeoForge-${minecraft_version}"
|
||||
|
||||
dependencies {
|
||||
// Add your dependencies here
|
||||
|
||||
// Do not edit or remove
|
||||
implementation project(":Common")
|
||||
}
|
||||
|
||||
// Maven Publishing. Remove if not needed
|
||||
publishing {
|
||||
publications {
|
||||
mavenJava(MavenPublication) {
|
||||
artifactId base.archivesName.get()
|
||||
from components.java
|
||||
}
|
||||
}
|
||||
repositories {
|
||||
// Add your maven repository here
|
||||
maven {
|
||||
url "file://" + System.getenv("local_maven")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* ===============================================================================
|
||||
* = DO NOT EDIT BELOW THIS LINE UNLESS YOU KNOW WHAT YOU ARE DOING =
|
||||
* ===============================================================================
|
||||
*/
|
||||
|
||||
unimined.minecraft {
|
||||
neoForged {
|
||||
loader neoforge_version
|
||||
mixinConfig("${mod_id}.mixins.json", "${mod_id}-neoforge.mixins.json")
|
||||
|
||||
// TODO Remove when NeoGradle is fixed
|
||||
forgeTransformer.binpatchFile = rootProject.projectDir.toPath().resolve("output.lzma")
|
||||
}
|
||||
}
|
||||
|
||||
processResources {
|
||||
from project(":Common").sourceSets.main.resources
|
||||
def buildProps = project.properties.clone()
|
||||
|
||||
filesMatching("META-INF/mods.toml") {
|
||||
expand buildProps
|
||||
}
|
||||
}
|
||||
|
||||
compileTestJava.enabled = false
|
||||
|
||||
tasks.withType(JavaCompile).configureEach {
|
||||
source(project(":Common").sourceSets.main.allSource)
|
||||
}
|
Reference in New Issue
Block a user