Files
fdd-xplat/NeoForge/build.gradle

56 lines
1.4 KiB
Groovy
Raw Normal View History

2023-11-08 20:57:08 +02:00
// Adjust the output jar name here
2023-11-08 22:28:44 +02:00
archivesBaseName = "${mod_name}-NeoForge-${minecraft_version}"
2023-11-06 23:25:17 +02:00
dependencies {
// Add your dependencies here
// Do not edit or remove
implementation project(":Common")
}
2023-11-08 20:57:08 +02:00
// 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")
}
}
}
2023-11-06 23:25:17 +02:00
/**
* ===============================================================================
* = DO NOT EDIT BELOW THIS LINE UNLESS YOU KNOW WHAT YOU ARE DOING =
* ===============================================================================
*/
unimined.minecraft {
2023-11-08 22:28:44 +02:00
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")
2023-11-06 23:25:17 +02:00
}
}
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)
}