forked from tgstyle/MCT-Immersive-Technology
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
82 lines (61 loc) · 1.91 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
buildscript {
repositories {
jcenter()
maven { url = "http://files.minecraftforge.net/maven" }
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
}
}
ext.configFile = file "../common/common-1.12.properties"
configFile.withReader {
def prop = new Properties()
prop.load(it)
ext.common = new ConfigSlurper().parse prop
}
apply plugin: 'net.minecraftforge.gradle.forge'
repositories {
maven {
name = "CurseForge"
url = "https://cursemaven.com"
}
maven {
name = "Squiddev"
url = "https://squiddev.cc/maven"
}
}
version = common.mcversion + "-" + modversion+ "." + modsubversion
group = modgroup
archivesBaseName = modarchivename
sourceCompatibility = targetCompatibility = "1.8"
compileJava {
sourceCompatibility = targetCompatibility = "1.8"
}
minecraft {
version = common.mcversion + "-" + common.forgeversion
mappings = common.mcp_mappings
runDir = "run"
replace '${version}', modversion+ "." + modsubversion
}
dependencies {
compile "curse.maven:${common.jei_version}"
deobfCompile("curse.maven:${common.imme_version}")
compileOnly "curse.maven:${common.top_version}"
compileOnly "curse.maven:${common.hwya_version}"
compileOnly "curse.maven:${common.ar_version}"
compileOnly "curse.maven:${common.lv_version}"
compileOnly "curse.maven:${common.crft_version}"
compileOnly "curse.maven:${common.opcm_version}"
compileOnly 'org.squiddev:cc-tweaked-1.12.2:1.89.2'
}
processResources {
inputs.property "version", project.modversion + "." + project.modsubversion
inputs.property "mcversion", project.minecraft.version
from(sourceSets.main.resources.srcDirs) {
include "mcmod.info"
expand "version":project.modversion + "." + project.modsubversion, "mcversion":project.minecraft.version
}
from(sourceSets.main.resources.srcDirs) {
exclude "mcmod.info"
}
}