Skip to content

Commit

Permalink
Include license file in JAR
Browse files Browse the repository at this point in the history
  • Loading branch information
ChloeDawn committed Dec 30, 2020
1 parent 943fd11 commit e72839c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import net.minecraftforge.gradle.common.task.SignJar
import org.gradle.jvm.tasks.Jar

plugins {
id("net.minecraftforge.gradle") version "3.0.189"
Expand Down Expand Up @@ -42,6 +41,8 @@ tasks {
jar {
archiveClassifier.set("forge")

from("/LICENSE")

manifest.attributes(mapOf(
"Specification-Title" to "MinecraftMod",
"Specification-Vendor" to project.group,
Expand All @@ -61,7 +62,7 @@ tasks {
setKeyStore("${project.property("signing.mods.keystore")}")
setKeyPass("${project.property("signing.mods.password")}")
setStorePass("${project.property("signing.mods.password")}")
setInputFile(named<Jar>("jar").get().archiveFile.get())
setInputFile(jar.get().archiveFile.get())
setOutputFile(inputFile)
}

Expand Down

0 comments on commit e72839c

Please sign in to comment.