-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathio.ksmt.ksmt-base.gradle.kts
More file actions
64 lines (51 loc) · 1.35 KB
/
io.ksmt.ksmt-base.gradle.kts
File metadata and controls
64 lines (51 loc) · 1.35 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm")
id("io.gitlab.arturbosch.detekt")
id("de.undercouch.download")
id("org.jetbrains.dokka")
`java-library`
`maven-publish`
signing
}
group = "io.ksmt"
version = "0.6.2"
repositories {
mavenCentral()
}
dependencies {
// Primitive collections
implementation("it.unimi.dsi:fastutil-core:8.5.11") // 6.1MB
implementation("org.jetbrains.kotlinx:kotlinx-collections-immutable:0.3.5")
testImplementation(kotlin("test"))
}
detekt {
buildUponDefaultConfig = true
config = files(rootDir.resolve("detekt.yml"))
}
tasks.withType<JavaCompile> {
targetCompatibility = JavaVersion.VERSION_1_8.toString()
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8.toString()
}
tasks.getByName<KotlinCompile>("compileKotlin") {
kotlinOptions.allWarningsAsErrors = true
}
tasks.withType<Test> {
useJUnitPlatform()
systemProperty("junit.jupiter.execution.parallel.enabled", true)
}
tasks.register<Jar>("dokkaJavadocJar") {
dependsOn(tasks.dokkaJavadoc)
from(tasks.dokkaJavadoc.flatMap { it.outputDirectory })
archiveClassifier.set("javadoc")
}
publishing {
repositories {
maven {
name = "releaseDir"
url = uri(layout.buildDirectory.dir("release"))
}
}
}