mirror of
https://github.com/LegacyModdingMC/UniMixins.git
synced 2026-11-24 22:24:25 +00:00
Shadow MixinExtras source
This commit is contained in:
1 parent
14e8ce7cb2
commit
cd232ec4a0
1 file changed
+15
-1
@@ -1,5 +1,7 @@
|
||||
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
||||
|
||||
configurations {
|
||||
shadowBridge
|
||||
shadowSources
|
||||
}
|
||||
|
||||
ext.uniVersion = version
|
||||
@@ -7,6 +9,7 @@ ext.extraVersion = mixinExtrasVersion
|
||||
|
||||
dependencies {
|
||||
shadow("com.github.llamalad7.mixinextras:mixinextras-common:$extraVersion")
|
||||
shadowSources("com.github.llamalad7.mixinextras:mixinextras-common:$extraVersion:sources")
|
||||
}
|
||||
|
||||
archivesBaseName = archivesBaseName.replace("-1.7.10", "-mixinextras-1.7.10")
|
||||
@@ -30,6 +33,17 @@ shadowJar {
|
||||
}
|
||||
}
|
||||
|
||||
task("shadowSources", type: ShadowJar) {
|
||||
from sourceSets.main.allSource
|
||||
classifier = "sources"
|
||||
configurations = [project.configurations."shadowSources"]
|
||||
}
|
||||
|
||||
sourcesJar {
|
||||
enabled = false
|
||||
dependsOn shadowSources
|
||||
}
|
||||
|
||||
jar {
|
||||
enabled = false
|
||||
dependsOn shadowJar
|
||||
|
||||
Reference in new issue
Block a user