-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
56 lines (47 loc) · 1.39 KB
/
build.gradle
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
49
50
51
52
53
54
55
56
buildscript {
repositories {
jcenter()
maven { url = "http://files.minecraftforge.net/maven" }
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
}
}
apply plugin: 'net.minecraftforge.gradle.forge'
version = "${project.mc_version}-${project.mod_version}"
group = project.maven_group
archivesBaseName = project.mod_id
sourceCompatibility = targetCompatibility = '1.8'
compileJava {
sourceCompatibility = targetCompatibility = '1.8'
}
minecraft {
version = "${project.mc_version}-${project.forge_version}"
runDir = "run"
mappings = project.mappings_version
replace "@VERSION@", project.mod_version
}
repositories {
maven {
url = "http://maven.cil.li/"
}
maven {
name = "JEI"
url = "http://dvs1.progwml6.com/files/maven"
}
}
dependencies {
deobfCompile "li.cil.oc:OpenComputers:MC${project.mc_version}-${project.opencomputers_version}"
deobfCompile "mezz.jei:jei_${project.mc_version}:${project.jei_version}"
}
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'
}
}