Skip to content

Commit

Permalink
Also add license to the dev jar
Browse files Browse the repository at this point in the history
  • Loading branch information
opekope2 committed Feb 8, 2024
1 parent 5cae4de commit b9f7e39
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
11 changes: 6 additions & 5 deletions FabricMod/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,6 @@ tasks {
archiveClassifier = "dev"
}

remapJar {
from(rootDir.resolve("COPYING"))
from(rootDir.resolve("COPYING.LESSER"))
}

processResources {
filesMatching("fabric.mod.json") {
expand(
Expand All @@ -75,13 +70,19 @@ tasks {

configurations = listOf(shadowCommon)
archiveClassifier = "dev-shadow"

from(rootDir.resolve("COPYING"))
from(rootDir.resolve("COPYING.LESSER"))
}

remapJar {
dependsOn(shadowJar)
inputFile.set(shadowJar.get().archiveFile)
injectAccessWidener = true
archiveClassifier = null

from(rootDir.resolve("COPYING"))
from(rootDir.resolve("COPYING.LESSER"))
}

sourcesJar {
Expand Down
14 changes: 8 additions & 6 deletions ForgeMod/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,6 @@ tasks {
archiveClassifier = "dev"
}

remapJar {
from(projectDir.resolve("Fabric.license"))
from(rootDir.resolve("COPYING"))
from(rootDir.resolve("COPYING.LESSER"))
}

processResources {
filesMatching("META-INF/mods.toml") {
expand(
Expand All @@ -81,13 +75,21 @@ tasks {

configurations = listOf(shadowCommon)
archiveClassifier = "dev-shadow"

from(rootDir.resolve("COPYING"))
from(rootDir.resolve("COPYING.LESSER"))
from(projectDir.resolve("Fabric.license"))
}

remapJar {
dependsOn(shadowJar)
inputFile.set(shadowJar.get().archiveFile)
injectAccessWidener = true
archiveClassifier = null

from(rootDir.resolve("COPYING"))
from(rootDir.resolve("COPYING.LESSER"))
from(projectDir.resolve("Fabric.license"))
}

sourcesJar {
Expand Down

0 comments on commit b9f7e39

Please sign in to comment.