File tree Expand file tree Collapse file tree 4 files changed +64
-6
lines changed
src/main/java/net/coderbot/iris/pipeline/transform Expand file tree Collapse file tree 4 files changed +64
-6
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,20 @@ sourceSets {
61
61
}
62
62
}
63
63
64
+ loom {
65
+ runs {
66
+ client {
67
+ mods {
68
+ oculus {
69
+ sourceSet sourceSets. main
70
+ sourceSet sourceSets. vendored
71
+ sourceSet sourceSets. sodiumCompatibility
72
+ }
73
+ }
74
+ }
75
+ }
76
+ }
77
+
64
78
repositories {
65
79
maven {
66
80
name = " Modrinth"
@@ -83,9 +97,10 @@ dependencies {
83
97
modCompileOnly " org.embeddedt:embeddium-${ minecraft_version} :${ embeddium_version} "
84
98
compileOnly " maven.modrinth:distanthorizons:2.0.1-a-1.20.1"
85
99
86
- implementation shadow(" io.github.douira:glsl-transformer:2.0.0" )
87
- implementation shadow(" org.antlr:antlr4-runtime:4.11.1" )
88
- implementation include(" org.anarres:jcpp:1.4.14" )
100
+ forgeRuntimeLibrary(implementation(shadow(project(path : " :glsl-relocated" , configuration : " bundledJar" )))) {
101
+ transitive = false
102
+ }
103
+ forgeRuntimeLibrary(implementation(include(" org.anarres:jcpp:1.4.14" )))
89
104
}
90
105
91
106
processResources {
@@ -102,7 +117,6 @@ shadowJar {
102
117
from jar. archiveFile
103
118
104
119
relocate ' org.apache.commons.collections4' , ' oculus.org.apache.commons.collections4'
105
- relocate ' org.antlr' , ' oculus.org.antlr'
106
120
107
121
archiveClassifier. set " shadow"
108
122
}
Original file line number Diff line number Diff line change
1
+ plugins {
2
+ id ' java-library'
3
+ id ' com.github.johnrengelman.shadow' version ' 8.1.1'
4
+ }
5
+
6
+ repositories {
7
+ mavenCentral()
8
+ }
9
+
10
+ dependencies {
11
+ implementation(shadow(" io.github.douira:glsl-transformer:2.0.0" )) {
12
+ exclude module : " antlr4" // we only want to shadow the runtime module
13
+ }
14
+ implementation shadow(" org.antlr:antlr4-runtime:4.11.1" )
15
+ }
16
+
17
+ shadowJar {
18
+ configurations = [project. configurations. shadow]
19
+
20
+ from jar. archiveFile
21
+
22
+ relocate ' org.antlr' , ' oculus.org.antlr'
23
+
24
+ archiveClassifier. set " shadow"
25
+ }
26
+
27
+
28
+
29
+ configurations {
30
+ bundledJar {
31
+ canBeConsumed = true
32
+ canBeResolved = false
33
+ // If you want this configuration to share the same dependencies, otherwise omit this line
34
+ extendsFrom implementation, runtimeOnly
35
+ }
36
+ }
37
+
38
+
39
+
40
+ artifacts {
41
+ bundledJar(shadowJar)
42
+ }
Original file line number Diff line number Diff line change @@ -10,3 +10,5 @@ pluginManagement {
10
10
gradlePluginPortal()
11
11
}
12
12
}
13
+
14
+ include(" glsl-relocated" )
Original file line number Diff line number Diff line change 7
7
import java .util .regex .Pattern ;
8
8
9
9
import net .coderbot .iris .gl .shader .ShaderCompileException ;
10
- import org .antlr .v4 .runtime .Token ;
11
- import org .antlr .v4 .runtime .misc .ParseCancellationException ;
10
+ import oculus . org .antlr .v4 .runtime .Token ;
11
+ import oculus . org .antlr .v4 .runtime .misc .ParseCancellationException ;
12
12
import org .apache .logging .log4j .LogManager ;
13
13
import org .apache .logging .log4j .Logger ;
14
14
You can’t perform that action at this time.
0 commit comments