forked from IrisShaders/Iris
-
Notifications
You must be signed in to change notification settings - Fork 58
/
build.gradle
129 lines (107 loc) · 2.73 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
plugins {
id 'dev.architectury.loom' version '0.10.0-SNAPSHOT'
id 'com.github.johnrengelman.shadow' version '7.1.2'
id 'maven-publish'
}
loom {
silentMojangMappingsLicense()
forge {
mixinConfigs = [
"mixins.oculus.json",
"mixins.oculus.fantastic.json",
"mixins.oculus.vertexformat.json",
"mixins.oculus.bettermipmaps.json",
"mixins.oculus.fixes.maxfpscrash.json",
"mixins.oculus.optimized-stitching.json",
"oculus-batched-entity-rendering.mixins.json",
"mixins.oculus.compat.sodium.json",
"mixins.oculus.compat.json"
]
}
mixin.defaultRefmapName = "oculus-mixins-refmap.json"
}
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
archivesBaseName = "${project.archives_base_name}-mc${project.minecraft_version}"
version = project.mod_version
group = project.maven_group
repositories {
mavenLocal()
maven {
name = "CurseForge"
url = "https://cursemaven.com"
content {
includeGroup "curse.maven"
}
}
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
content {
includeGroup "maven.modrinth"
}
}
}
dependencies {
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings loom.officialMojangMappings()
forge "net.minecraftforge:forge:${minecraft_version}-${forge_version}"
modCompileOnly "maven.modrinth:rubidium:0.2.13"
//modCompileOnly "me.jellysquid.mods:Rubidium:0.2.13"
modCompileOnly "curse.maven:epic-fight-mod-405076:4029362"
modRuntimeOnly "curse.maven:lazydfu-460819:3249059"
implementation(shadow(project(path: ":glsl-relocated", configuration: "bundledJar"))) {
transitive = false
}
implementation(shadow("org.anarres:jcpp:1.4.14")) {
transitive = false
}
shadow("org.slf4j:slf4j-api:1.7.12") // for jcpp
}
processResources {
inputs.property "version", project.version
filesMatching("META-INF/mods.toml") {
expand "version": project.version
}
}
tasks.withType(JavaCompile).configureEach {
it.options.encoding = "UTF-8"
def targetVersion = 8
if (JavaVersion.current().isJava9Compatible()) {
it.options.release = targetVersion
}
}
java {
withSourcesJar()
}
shadowJar {
configurations = [project.configurations.shadow]
from jar.archiveFile
relocate 'org.apache.commons.collections4', 'oculus.org.apache.commons.collections4'
relocate 'org.anarres.cpp', 'oculus.org.anarres.cpp'
relocate 'org.slf4j', 'oculus.org.slf4j'
archiveClassifier.set "shadow"
manifest {
attributes(
'Main-Class': 'net.coderbot.iris.LaunchWarn'
)
}
}
remapJar {
input.set shadowJar.archiveFile
dependsOn shadowJar
}
publishing {
publications {
mavenJava(MavenPublication) {
artifact(remapJar) {
builtBy remapJar
}
artifact(sourcesJar) {
builtBy remapSourcesJar
}
}
}
repositories {
}
}