-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
115 lines (101 loc) · 3.13 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
buildscript {
repositories {
maven {
name = "Forge"
url = "https://maven.minecraftforge.net"
}
maven {
name = "Sponge"
url = "https://repo.spongepowered.org/maven"
}
mavenCentral()
}
dependencies {
classpath 'com.anatawa12.forge:ForgeGradle:2.3-1.0.8'
classpath 'org.spongepowered:mixingradle:0.6-SNAPSHOT'
}
}
apply plugin: 'net.minecraftforge.gradle.forge'
//Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.
apply plugin: 'eclipse'
apply plugin: 'org.spongepowered.mixin'
version = "1.1.4"
group = "com.sirsquidly.oe"
archivesBaseName = "OceanicExpanse"
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8'
minecraft {
version = "1.12.2-14.23.5.2847"
runDir = "run"
mappings = "stable_39"
def args = ["-Dmixin.debug.export=true",
'-Dmixin.hotSwap=true',
'-Dmixin.checks.interfaces=true'
]
clientJvmArgs.addAll(args)
serverJvmArgs.addAll(args)
}
repositories
{
maven {
name = "Curse Maven"
url = "https://cursemaven.com"
}
maven {
name = "CleanroomMC"
url = "https://maven.cleanroommc.com"
}
maven {
// Fluidlogged API files
url 'https://jitpack.io'
}
maven {
//JEI files
name = "DVS1 Maven FS"
url = "http://dvs1.progwml6.com/files/maven"
}
maven {
// Fallback maven mirror for JEI files
name = "ModMaven"
url = "http://modmaven.k-4u.nl"
}
maven {
name = 'Sponge'
url = uri('https://repo.spongepowered.org/maven')
}
}
// This thing is used so the Assets are properly processed
sourceSets { main { output.resourcesDir = output.classesDir } }
dependencies
{
deobfCompile "com.github.jbredwards:fluidlogged-api:${fluidlogged_api_version}"
deobfProvided "mezz.jei:jei_${mc_version}:${jei_version}"
implementation "zone.rong:mixinbooter:8.4"
//implementation "curse.maven:mixin-booter-419286:${project.mixinbooter_version}"
annotationProcessor "org.spongepowered:mixin:${project.mixin_version}:processor"
}
processResources
{
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
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'
}
}
mixin {
add sourceSets.main, "refmap.oe.json"
}
jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
manifest {
attributes(
'FMLCorePlugin': 'com.sirsquidly.oe.core.OECore',
'FMLCorePluginContainsFMLMod': 'true',
'ForceLoadAsMod': 'true' // Swap to 'true' when building .jar
)
}
}