Skip to content

Commit

Permalink
Fix file type in publishMods
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander01998 committed Nov 15, 2024
1 parent b07eba2 commit f9f9643
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -269,10 +269,10 @@ spotless {
}

publishMods {
file = tasks.named("renameJarJar").map { task ->
file = tasks.named("renameJarJar").flatMap { task ->
def libsDir = layout.buildDirectory.dir("libs").get().asFile
def jarFiles = libsDir.listFiles().findAll { it.name.endsWith(".jar") }
jarFiles[0]
layout.file(providers.provider { jarFiles[0] })
}
def versionString = project.version as String
def ghVersion = "v" + versionString.substring(0, versionString.indexOf("-MC"))
Expand Down

0 comments on commit f9f9643

Please sign in to comment.