Shadow MixinExtras source

This commit is contained in:
makamys committed 2023-10-21 12:58:03 +02:00
1 parent 14e8ce7cb2
commit cd232ec4a0
1 file changed
+15 -1
+15 -1
View File
@@ -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