-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
48 lines (36 loc) · 1.07 KB
/
build.gradle.kts
File metadata and controls
48 lines (36 loc) · 1.07 KB
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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
id("io.ksmt.ksmt-base")
id("com.gradleup.shadow") version "9.0.0-beta13" apply false
}
val distDir = projectDir.parentFile.resolve("dist")
repositories {
mavenCentral()
}
val cvc5Version = "1.3.0"
val cvc5Jar = distDir.resolve("cvc5-$cvc5Version.jar")
dependencies {
implementation(project(":ksmt-core"))
api(files(cvc5Jar))
testImplementation(project(":ksmt-cvc5:ksmt-cvc5-native"))
}
val publishJar = tasks.register<ShadowJar>("publish-jar") {
dependsOn(tasks.named("jar"))
archiveClassifier.set("pub")
dependencies {
include(dependency(files(cvc5Jar)))
}
configurations = listOf(project.configurations.runtimeClasspath.get())
with(tasks.jar.get() as CopySpec)
}
publishing {
publications {
create<MavenPublication>("maven") {
artifact(publishJar.get())
addKsmtPom()
generateMavenMetadata(project)
addSourcesAndJavadoc(project)
signKsmtPublication(project)
}
}
}