forked from IrisShaders/Iris
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Relocate ANTLR in a subproject to avoid conflicts with Forge * Do not shadow the whole ANTLR library
- Loading branch information
Showing
4 changed files
with
64 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
plugins { | ||
id 'java-library' | ||
id 'com.github.johnrengelman.shadow' version '8.1.1' | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation(shadow("io.github.douira:glsl-transformer:2.0.0")) { | ||
exclude module: "antlr4" // we only want to shadow the runtime module | ||
} | ||
implementation shadow("org.antlr:antlr4-runtime:4.11.1") | ||
} | ||
|
||
shadowJar { | ||
configurations = [project.configurations.shadow] | ||
|
||
from jar.archiveFile | ||
|
||
relocate 'org.antlr', 'oculus.org.antlr' | ||
|
||
archiveClassifier.set "shadow" | ||
} | ||
|
||
|
||
|
||
configurations { | ||
bundledJar { | ||
canBeConsumed = true | ||
canBeResolved = false | ||
// If you want this configuration to share the same dependencies, otherwise omit this line | ||
extendsFrom implementation, runtimeOnly | ||
} | ||
} | ||
|
||
|
||
|
||
artifacts { | ||
bundledJar(shadowJar) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,5 @@ pluginManagement { | |
gradlePluginPortal() | ||
} | ||
} | ||
|
||
include("glsl-relocated") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters