Skip to content

Commit

Permalink
Fixed build
Browse files Browse the repository at this point in the history
  • Loading branch information
mosemister committed Oct 11, 2023
1 parent 4a34628 commit 251c23c
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ tasks.register('buildFolia', Jar) {
archiveFileName = 'ShipsFolia.jar'



def path = project.rootDir.path + "/standalone/"
file(path).mkdirs()
destinationDirectory = file(path)
Expand All @@ -34,11 +35,13 @@ tasks.register('buildFolia', Jar) {
}
}

File translateCoreFile = file(project.projectDir.path + '/CoreTo' + type + '/build/libs').listFiles()[0]
def coreFiles = zipTree(translateCoreFile)
jarFiles.add(coreFiles)
from {
jarFiles
File translateCoreFile = file(project.projectDir.path + '/CoreTo' + type + '/build/libs/TranslateCoreFolia')
if(translateCoreFile.exists()) {
def coreFiles = zipTree(translateCoreFile)
jarFiles.add(coreFiles)
from {
jarFiles
}
}

}
Expand Down

0 comments on commit 251c23c

Please sign in to comment.