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.
Backport Gradle scripting from 1.20 to reduce extra repackaging and a…
…llow running in dev
- Loading branch information
Showing
379 changed files
with
77 additions
and
79,449 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' | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation(shadow("io.github.douira:glsl-transformer:1.0.1")) { | ||
exclude module: "antlr4" // we only want to shadow the runtime module | ||
} | ||
implementation shadow("org.antlr:antlr4-runtime:4.10.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 |
---|---|---|
|
@@ -9,3 +9,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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.