This repository was archived by the owner on Sep 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
133 lines (104 loc) · 3.31 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
buildscript {
repositories {
jcenter()
maven { url = "http://files.minecraftforge.net/maven" }
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
}
}
plugins {
id 'org.ajoberstar.grgit' version '1.7.2'
}
apply plugin: 'net.minecraftforge.gradle.forge'
final commitId
if (hasProperty("grgit")) { // If there's a valid Git repository, get the latest commit ID
commitId = "${grgit.head().abbreviatedId}"
} else { // Else fall back to NOGIT
commitId = "NOGIT"
}
version = "${mc_version}-${mod_version}-${commitId}"
def soulus_version = version
group = "${package_group}"
archivesBaseName = "${mod_name}"
sourceCompatibility = targetCompatibility = "1.8"
compileJava {
sourceCompatibility = targetCompatibility = "1.8"
}
minecraft {
version = "${mc_version}-${forge_version}"
runDir = "run"
// the mappings can be changed at any time, and must be in the following format.
// snapshot_YYYYMMDD snapshot are built nightly.
// stable_# stables are built at the discretion of the MCP team.
// Use non-default mappings at your own risk. they may not always work.
// simply re-run your setup task after changing the mappings to update your workspace.
mappings = "${mappings_version}"
// makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
replace "@VERSION@", "$soulus_version"
replaceIn "Soulus.java"
}
repositories {
// CraftTweaker
maven {
url "http://maven.blamejared.com"
}
// JEI
maven {
name "DVS1 Maven FS"
url "http://dvs1.progwml6.com/files/maven"
}
// HWYLA
maven {
name "tehnut"
url "http://tehnut.info/maven"
}
// TheOneProbe
maven {
name "tterrag"
url "http://maven.tterrag.com"
}
repositories {
// RedstoneFlux
maven {
name "CoFH Maven"
url "http://maven.covers1624.net"
}
}
// Game Stages
maven {
url "https://maven.mcmoddev.com"
}
}
dependencies {
compileOnly "mcp.mobius.waila:Hwyla:1.8.23-B38_1.12:api"
// runtime "mcp.mobius.waila:Hwyla:1.8.23-B38_1.12"
deobfProvided "mezz.jei:jei_1.12.2:4.8.5.138"
deobfProvided "CraftTweaker2:CraftTweaker2-MC1120-Main:1.12-4.1.0.387"
deobfProvided "CraftTweaker2:CraftTweaker2-API:4.1.0.387"
deobfProvided "CraftTweaker2:ZenScript:4.1.0.387"
deobfProvided "mcjty.theoneprobe:TheOneProbe-1.12:1.12-1.4.28-17"
compileOnly "vazkii.patchouli:Patchouli:1.0-10.45"
deobfProvided "net.darkhax.gamestages:GameStages-1.12.2:2.0.112"
}
processResources {
inputs.property "version", project.version
inputs.property "mod_version", project.mod_version
inputs.property "mcversion", project.minecraft.version
from(sourceSets.main.resources.srcDirs) {
include 'mcmod.info'
expand 'version':project.version, 'mcversion':project.minecraft.version, 'mod_version':project.mod_version
}
from(sourceSets.main.resources.srcDirs) {
exclude 'mcmod.info'
}
rename '(.+_at.cfg)', 'META-INF/$1'
}
jar {
manifest {
attributes 'FMLAT': 'soulus_at.cfg'
}
}
runClient {
jvmArgs "-Xmx8192m", "-Xms1024m"
}