summary refs log tree commit diff stats
path: root/build.gradle
diff options
context:
space:
mode:
authorUpcraftLP <j-schirra@gmx.de>2019-02-15 21:54:29 +0100
committerUpcraftLP <j-schirra@gmx.de>2019-02-15 21:54:29 +0100
commit8bbfcdcb4b36b59fe1320a2e48378c3001ba42f4 (patch)
tree305224d95e88449cd8c7861f63c18cfb5c585dfd /build.gradle
parent51bee1baf0edd9c536b504aeee1ae6e3e44b474d (diff)
move properties out of the main buildscript
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle13
1 files changed, 7 insertions, 6 deletions
diff --git a/build.gradle b/build.gradle
index a698bd7..7471ac1 100644
--- a/build.gradle
+++ b/build.gradle
@@ -5,19 +5,20 @@ plugins {
 sourceCompatibility = JavaVersion.VERSION_1_8
 targetCompatibility = JavaVersion.VERSION_1_8
 
-archivesBaseName = "modid"
-version = "1.0.0"
+archivesBaseName = project.archives_base_name
+version = project.mod_version
 
 minecraft {
 }
 
 dependencies {
-	minecraft "com.mojang:minecraft:19w06a"
-	mappings "net.fabricmc:yarn:19w06a.3"
-	modCompile "net.fabricmc:fabric-loader:0.3.5.106"
+    //to change the versions see the gradle.properties file
+	minecraft "com.mojang:minecraft:${project.minecraft_version}"
+	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.
-	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