droidfish/CuckooChessEngine/build.gradle

27 lines
681 B
Groovy
Raw Permalink Normal View History

2019-03-17 09:11:36 +01:00
apply plugin: 'java-library'
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
// Required -- JUnit 4 framework
2020-03-26 23:26:39 +01:00
testImplementation 'junit:junit:4.13'
2019-03-17 09:11:36 +01:00
// Optional -- Robolectric environment
2020-03-26 23:26:39 +01:00
testImplementation 'androidx.test:core:1.2.0'
2019-03-17 09:11:36 +01:00
// Optional -- Mockito framework
testImplementation 'org.mockito:mockito-core:1.10.19'
}
sourceCompatibility = '8'
targetCompatibility = '8'
2019-03-17 09:11:36 +01:00
// Build internal opening book
task buildBook {
def a = "CuckooChessEngine/src/main/book.txt"
def b = "CuckooChessEngine/src/main/resources/book.bin"
chess.Book.main2(a, b)
}
tasks.withType(JavaCompile) {
t -> t.dependsOn buildBook
}