mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2024-11-27 06:10:28 +01:00
Workaround for build failure when building from a clean source tree.
The build fails when building from a clean source tree, because the CuckooChessEngine.jar file does not exist. This commit adds a workaround, but you have to build twice to get the CuckooChess.jar file to be built.
This commit is contained in:
parent
23b6f94678
commit
f8163545eb
|
@ -1,10 +1,12 @@
|
||||||
apply plugin: 'java-library'
|
apply plugin: 'java-library'
|
||||||
|
|
||||||
jar {
|
if (project.file('../CuckooChessEngine/build/libs/CuckooChessEngine.jar').exists()) {
|
||||||
manifest {
|
jar {
|
||||||
attributes "Main-Class": "tui.Main"
|
manifest {
|
||||||
}
|
attributes "Main-Class": "tui.Main"
|
||||||
from zipTree('../CuckooChessEngine/build/libs/CuckooChessEngine.jar')
|
}
|
||||||
|
from zipTree('../CuckooChessEngine/build/libs/CuckooChessEngine.jar')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user