move properties out of the main buildscript
This commit is contained in:
parent
51bee1baf0
commit
8bbfcdcb4b
2 changed files with 23 additions and 8 deletions
13
build.gradle
13
build.gradle
|
@ -5,19 +5,20 @@ plugins {
|
||||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||||
targetCompatibility = JavaVersion.VERSION_1_8
|
targetCompatibility = JavaVersion.VERSION_1_8
|
||||||
|
|
||||||
archivesBaseName = "modid"
|
archivesBaseName = project.archives_base_name
|
||||||
version = "1.0.0"
|
version = project.mod_version
|
||||||
|
|
||||||
minecraft {
|
minecraft {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
minecraft "com.mojang:minecraft:19w06a"
|
//to change the versions see the gradle.properties file
|
||||||
mappings "net.fabricmc:yarn:19w06a.3"
|
minecraft "com.mojang:minecraft:${project.minecraft_version}"
|
||||||
modCompile "net.fabricmc:fabric-loader:0.3.5.106"
|
mappings "net.fabricmc:yarn:${project.yarn_mappings}"
|
||||||
|
modCompile "net.fabricmc:fabric-loader:${project.loader_version}"
|
||||||
|
|
||||||
// Fabric API. This is technically optional, but you probably want it anyway.
|
// Fabric API. This is technically optional, but you probably want it anyway.
|
||||||
modCompile "net.fabricmc:fabric:0.2.0.91"
|
modCompile "net.fabricmc:fabric:${project.fabric_version}"
|
||||||
}
|
}
|
||||||
|
|
||||||
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
|
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
|
||||||
|
|
|
@ -1,2 +1,16 @@
|
||||||
#Done to increase the memory available to gradle.
|
# Done to increase the memory available to gradle.
|
||||||
org.gradle.jvmargs=-Xmx1G
|
org.gradle.jvmargs=-Xmx1G
|
||||||
|
|
||||||
|
# Fabric Properties
|
||||||
|
# check these on https://fabric.asie.pl/use
|
||||||
|
minecraft_version=19w07a
|
||||||
|
yarn_mappings=19w07a.6
|
||||||
|
loader_version=0.3.6.107
|
||||||
|
|
||||||
|
# Mod Properties
|
||||||
|
mod_version = 1.0.0
|
||||||
|
archives_base_name = fabric-example-mod
|
||||||
|
|
||||||
|
# Dependencies
|
||||||
|
# currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric
|
||||||
|
fabric_version=0.2.1.94
|
||||||
|
|
Loading…
Reference in a new issue