aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorUnknown <shekwancheung0528@gmail.com>2019-03-07 22:21:06 +0800
committerUnknown <shekwancheung0528@gmail.com>2019-03-07 22:21:06 +0800
commit8cd1f1a9804f980c1666079c99bafb6330c77723 (patch)
tree449f74c31bf73a4106b2cb9bc7fb5635925b2328 /build.gradle
parente5909b2fa40428d2a25a4f727a49a4f4fc47ad01 (diff)
downloadRoughlyEnoughItems-8cd1f1a9804f980c1666079c99bafb6330c77723.tar.gz
RoughlyEnoughItems-8cd1f1a9804f980c1666079c99bafb6330c77723.tar.bz2
RoughlyEnoughItems-8cd1f1a9804f980c1666079c99bafb6330c77723.zip
Config with comments
Diffstat (limited to 'build.gradle')
-rwxr-xr-xbuild.gradle48
1 files changed, 32 insertions, 16 deletions
diff --git a/build.gradle b/build.gradle
index 9a8ed03ad..4d74023ef 100755
--- a/build.gradle
+++ b/build.gradle
@@ -1,22 +1,26 @@
+import net.fabricmc.loom.task.RemapJar
+
plugins {
id 'fabric-loom' version '0.2.0-SNAPSHOT'
+ id "com.github.johnrengelman.shadow" version "4.0.3"
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
+group = "me.shedaniel"
archivesBaseName = "RoughlyEnoughItems"
-version = "2.3.3.57"
-
-def minecraftVersion = "19w09a"
-def yarnVersion = "19w09a.4"
-def fabricVersion = "0.2.3.108"
-def fabricLoaderVersion = "0.3.7.109"
-def pluginLoaderVersion = "1.14-1.0.6-8"
+version = project.modVersion
minecraft {
}
+repositories {
+ maven { url "https://tehnut.info/maven/" }
+ maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
+ maven { url "https://maven.jamieswhiteshirt.com/libs-release/" }
+}
+
processResources {
filesMatching('fabric.mod.json') {
expand 'version': project.version
@@ -24,17 +28,29 @@ processResources {
inputs.property "version", project.version
}
-repositories {
- maven { url "https://tehnut.info/maven/" }
+configurations {
+ contained {
+ transitive = false
+ }
}
-dependencies {
- minecraft "com.mojang:minecraft:${minecraftVersion}"
- mappings "net.fabricmc:yarn:${yarnVersion}"
- modCompile "net.fabricmc:fabric-loader:${fabricLoaderVersion}"
+shadowJar {
+ configurations = [project.configurations.contained]
+}
- // Fabric API. This is technically optional, but you probably want it anyway.
- modCompile "net.fabricmc:fabric:${fabricVersion}"
+task remapShadowJar(type: RemapJar) {
+ jar = shadowJar.archivePath
+}
+tasks.remapShadowJar.dependsOn tasks.shadowJar
- modCompile "info.tehnut.pluginloader:plugin-loader:${pluginLoaderVersion}"
+dependencies {
+ minecraft "com.mojang:minecraft:${project.minecraftVersion}"
+ mappings "net.fabricmc:yarn:${project.yarnVersion}"
+ modCompile "net.fabricmc:fabric-loader:${project.fabricLoaderVersion}"
+ modCompile "com.jamieswhiteshirt:developer-mode:${project.developerModeVersion}"
+ modCompile "info.tehnut.pluginloader:plugin-loader:${project.pluginLoaderVersion}"
+ modCompile "net.fabricmc:fabric:${project.fabricVersion}"
+
+ compile "blue.endless:jankson:${project.janksonVersion}"
+ contained "blue.endless:jankson:${project.janksonVersion}"
}