-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
48 lines (43 loc) · 1.36 KB
/
build.gradle
File metadata and controls
48 lines (43 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
buildscript {
repositories() {
jcenter()
maven {
name = "forge"
url = "http://files.minecraftforge.net/maven"
}
maven {
name = "sonatype"
url = "https://oss.sonatype.org/content/repositories/snapshots/"
}
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.1-SNAPSHOT'
}
}
apply plugin: 'net.minecraftforge.gradle.forge'
//Version of your mod
version = "1.0"
//This should be the package your @Mod class is in
group = "com.example.example"
//This should be your modid
archivesBaseName = "example"
minecraft {
//The version of minecraft and forge you are developing for
version = "1.8.9-11.15.0.1688"
//Run Dir is the directory minecraft will store files like saves and configs in
runDir = "run"
//Mappings are what forge uses to convert func_149645_b () to getRenderType() for example
mappings = "snapshot_20160130"
}
//This is for building the jar don't worry about it
processResources {
inputs.property "version", project.version
inputs.property "mcversion", project.minecraft.version
from(sourceSets.main.resources.srcDirs) {
include 'mcmod.info'
expand 'version': project.version, 'mcversion': project.minecraft.version
}
from(sourceSets.main.resources.srcDirs) {
exclude 'mcmod.info'
}
}