Avoid hardcoding Minecraft version
This commit is contained in:
parent
3d80d5a90e
commit
22a73f564f
15
build.gradle
15
build.gradle
|
|
@ -19,7 +19,7 @@ group = 'org.embeddedt'
|
||||||
version = '1.0.0'
|
version = '1.0.0'
|
||||||
|
|
||||||
java {
|
java {
|
||||||
archivesBaseName = 'modernfix'
|
archivesBaseName = 'modernfix-mc' + minecraft_version
|
||||||
toolchain.languageVersion = JavaLanguageVersion.of(8)
|
toolchain.languageVersion = JavaLanguageVersion.of(8)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -37,7 +37,7 @@ minecraft {
|
||||||
//
|
//
|
||||||
// Use non-default mappings at your own risk. They may not always work.
|
// Use non-default mappings at your own risk. They may not always work.
|
||||||
// Simply re-run your setup task after changing the mappings to update your workspace.
|
// Simply re-run your setup task after changing the mappings to update your workspace.
|
||||||
mappings channel: 'official', version: '1.16.5'
|
mappings channel: 'official', version: minecraft_version
|
||||||
|
|
||||||
accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
|
accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
|
||||||
|
|
||||||
|
|
@ -133,18 +133,11 @@ dependencies {
|
||||||
// Specify the version of Minecraft to use. If this is any group other than 'net.minecraft' it is assumed
|
// Specify the version of Minecraft to use. If this is any group other than 'net.minecraft' it is assumed
|
||||||
// that the dep is a ForgeGradle 'patcher' dependency, and its patches will be applied.
|
// that the dep is a ForgeGradle 'patcher' dependency, and its patches will be applied.
|
||||||
// The userdev artifact is a special name and will get all sorts of transformations applied to it.
|
// The userdev artifact is a special name and will get all sorts of transformations applied to it.
|
||||||
minecraft 'net.minecraftforge:forge:1.16.5-36.2.39'
|
minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}"
|
||||||
|
|
||||||
annotationProcessor 'org.spongepowered:mixin:0.8.5:processor'
|
annotationProcessor 'org.spongepowered:mixin:0.8.5:processor'
|
||||||
|
|
||||||
// If you want to test/use Mekanism & its modules during `runClient` invocation, use the following
|
runtimeOnly fg.deobf("curse.maven:lazydfu-460819:${lazydfu_version}")
|
||||||
runtimeOnly fg.deobf("mekanism:Mekanism:${mekanism_version}")// core
|
|
||||||
runtimeOnly fg.deobf("mekanism:Mekanism:${mekanism_version}:additions")// Mekanism: Additions
|
|
||||||
runtimeOnly fg.deobf("mekanism:Mekanism:${mekanism_version}:generators")// Mekanism: Generators
|
|
||||||
runtimeOnly fg.deobf("mekanism:Mekanism:${mekanism_version}:tools")// Mekanism: Tools
|
|
||||||
|
|
||||||
runtimeOnly fg.deobf("curse.maven:lazydfu-460819:3249059")
|
|
||||||
runtimeOnly fg.deobf("curse.maven:roadrunner-529754:3683120")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Example for how to get properties into the manifest for reading at runtime.
|
// Example for how to get properties into the manifest for reading at runtime.
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
org.gradle.jvmargs=-Xmx3G
|
org.gradle.jvmargs=-Xmx3G
|
||||||
org.gradle.daemon=false
|
org.gradle.daemon=false
|
||||||
mekanism_version=1.16.5-10.1.2.457
|
minecraft_version=1.16.5
|
||||||
|
forge_version=36.2.39
|
||||||
|
lazydfu_version=3249059
|
||||||
Loading…
Reference in New Issue
Block a user