Skip to content

Commit

Permalink
Ensure that common source sets are depended on
Browse files Browse the repository at this point in the history
  • Loading branch information
jellysquid3 committed Oct 25, 2024
1 parent b80c9a1 commit 7270417
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions buildSrc/src/main/kotlin/multiloader-platform.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ tasks {
from(rootDir.resolve("LICENSE.md"))

// Entry-point for desktop integration when the file is executed directly
dependsOn(configurationDesktopIntegration)
from(configurationDesktopIntegration.map { zipTree(it) })
manifest.attributes["Main-Class"] = "net.caffeinemc.mods.sodium.desktop.LaunchWarn"
}
Expand Down
1 change: 1 addition & 0 deletions fabric/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ loom {

tasks {
jar {
dependsOn(configurationCommon)
from(configurationCommon.map { zipTree(it) })
}
}
3 changes: 3 additions & 0 deletions neoforge/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ dependencies {
}

val serviceJar = tasks.create<Jar>("serviceJar") {
dependsOn(configurationCommonEarly)
from(configurationCommonEarly.map { zipTree(it) })

from(sourceSets["service"].output)

from(rootDir.resolve("LICENSE.md"))
Expand Down Expand Up @@ -120,6 +122,7 @@ neoForge {

tasks {
jar {
dependsOn(configurationCommonMod)
from(configurationCommonMod.map { zipTree(it) })
}
}

0 comments on commit 7270417

Please sign in to comment.