diff --git a/CuckooChess/build.gradle b/CuckooChess/build.gradle index 146978f..f2bfc60 100644 --- a/CuckooChess/build.gradle +++ b/CuckooChess/build.gradle @@ -1,10 +1,12 @@ apply plugin: 'java-library' -jar { - manifest { - attributes "Main-Class": "tui.Main" - } - from zipTree('../CuckooChessEngine/build/libs/CuckooChessEngine.jar') +if (project.file('../CuckooChessEngine/build/libs/CuckooChessEngine.jar').exists()) { + jar { + manifest { + attributes "Main-Class": "tui.Main" + } + from zipTree('../CuckooChessEngine/build/libs/CuckooChessEngine.jar') + } } dependencies {