-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
62 lines (49 loc) · 1.29 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
plugins {
id 'application'
id "io.freefair.lombok" version '6.3.0'
}
group = 'PolySI'
version = '1.0.0-SNAPSHOT'
description = 'PolySI'
application {
mainClass = 'Launcher'
}
sourceCompatibility = 11
targetCompatibility = 11
repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.guava:guava:31.0.1-jre'
implementation 'org.apache.commons:commons-lang3:3.12.0'
implementation 'info.picocli:picocli:4.6.3'
implementation 'org.roaringbitmap:RoaringBitmap:0.9.35'
implementation files('build/monosat/monosat.jar')
testImplementation 'org.junit.jupiter:junit-jupiter:5.8.2'
}
test {
systemProperty "java.library.path", "$buildDir/monosat"
jvmArgs += [ "-Xmx4096m" ]
useJUnitPlatform()
}
tasks.register('buildMonoSAT') {
exec {
commandLine 'cmake', '-B', "$buildDir/monosat", '-S', "$projectDir/monosat", '-DJAVA=ON', '-DBUILD_STATIC=OFF'
}
exec {
commandLine 'cmake', '--build', "$buildDir/monosat", '-j8'
}
}
jar {
dependsOn 'buildMonoSAT'
manifest {
attributes 'Main-Class': 'Launcher'
}
duplicatesStrategy('exclude')
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
from {
"$buildDir/monosat/libmonosat.so"
}
}