Skip to content

Commit

Permalink
Add sources jars to additional files for publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
Erdragh committed May 27, 2024
1 parent 0dd3349 commit 820e9a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fabric/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ publishMods {
from(curseforgePublish)
modLoaders.add(project.name)
file.set(tasks.remapJar.get().archiveFile)
additionalFiles.plus(tasks.sourcesJar.get().archiveFile)
displayName = "$title $version ${titles[project.name]} $minecraftVersion"
this.version = "$version-mc$minecraftVersion-${project.name}"
requires("fabric-language-kotlin", "forge-config-api-port-fabric", "fabric-api")
Expand All @@ -146,6 +147,7 @@ publishMods {
from(modrinthPublish)
modLoaders.add(project.name)
file.set(tasks.remapJar.get().archiveFile)
additionalFiles.plus(tasks.sourcesJar.get().archiveFile)
displayName = "$title $version ${titles[project.name]} $minecraftVersion"
this.version = "$version-mc$minecraftVersion-${project.name}"
requires("fabric-language-kotlin", "forge-config-api-port-fabric", "fabric-api")
Expand Down
2 changes: 2 additions & 0 deletions neoforge/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ publishMods {
from(curseforgePublish)
modLoaders.add(project.name)
file.set(tasks.jarJar.get().archiveFile)
additionalFiles.plus(tasks.sourcesJar.get().archiveFile)
displayName = "$title $version ${titles[project.name]} $minecraftVersion"
this.version = "$version-mc$minecraftVersion-${project.name}"
requires("kotlin-for-forge")
Expand All @@ -164,6 +165,7 @@ publishMods {
from(modrinthPublish)
modLoaders.add(project.name)
file.set(tasks.jarJar.get().archiveFile)
additionalFiles.plus(tasks.sourcesJar.get().archiveFile)
displayName = "$title $version ${titles[project.name]} $minecraftVersion"
this.version = "$version-mc$minecraftVersion-${project.name}"
requires("kotlin-for-forge")
Expand Down

0 comments on commit 820e9a7

Please sign in to comment.