create-mekanism-modular/build.gradle

60 lines
1.3 KiB
Groovy

plugins {
id 'java'
id 'net.neoforged.moddev' version '2.0.143'
}
version = project.mod_version
group = project.mod_group_id
base.archivesName = project.mod_id
java.toolchain.languageVersion = JavaLanguageVersion.of(21)
neoForge {
version = project.neo_version
runs {
client {
client()
}
server {
server()
}
}
mods {
"${project.mod_id}" {
sourceSet sourceSets.main
}
}
}
repositories {
mavenCentral()
}
// Nothing to compile against beyond NeoForge itself. Truly Modular is a runtime
// dependency only: this mod talks to it purely through datapack JSON, so there
// is no API to build on and no version to get wrong at compile time.
dependencies {
}
tasks.withType(ProcessResources).configureEach {
var replacements = [
mod_id : project.mod_id,
mod_name : project.mod_name,
mod_version : project.mod_version,
mod_authors : project.mod_authors,
mod_description: project.mod_description,
]
inputs.properties replacements
filesMatching('META-INF/neoforge.mods.toml') {
expand replacements
}
}
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
options.release = 21
}