-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
71 lines (58 loc) · 2.04 KB
/
build.gradle.kts
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
65
66
67
68
69
70
71
plugins {
// val kotlinVersion="1.9.21"
java
kotlin("jvm").version("1.9.21")
id("org.jetbrains.kotlin.plugin.allopen") version "1.9.21"
id("org.jlleitschuh.gradle.ktlint") version "11.5.1"
id("org.jlleitschuh.gradle.ktlint-idea") version "11.5.0"
id("com.github.johnrengelman.shadow") version "8.1.1"
}
version = "0.1"
group = "eyalgo"
val kotlinVersion = project.properties.get("kotlinVersion")
repositories {
mavenCentral()
}
dependencies {
implementation("org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion")
implementation("com.hazelcast:hazelcast:5.3.6")
/**
* TODO check javax.cache:cache-api
* See [javax.cache:cache-api](https://github.com/hazelcast/hazelcast-code-samples/tree/master)
* and [jcache](https://docs.hazelcast.com/hazelcast/5.3/jcache/jcache)
*/
implementation("javax.cache:cache-api:1.1.1")
testImplementation("org.junit.jupiter:junit-jupiter:5.10.1")
testImplementation("io.kotest:kotest-assertions-core:5.8.0")
testImplementation("io.kotest.extensions:kotest-assertions-arrow:1.4.0")
testImplementation("com.github.blindpirate:junit5-capture-system-output-extension:0.1.2")
}
tasks.withType<Test> {
useJUnitPlatform()
group = "verification"
testClassesDirs = sourceSets["test"].output.classesDirs
classpath = sourceSets["test"].runtimeClasspath
}
java {
sourceCompatibility = JavaVersion.toVersion("17")
}
sourceSets {
getByName("main").java.srcDirs("src/main/kotlin")
getByName("test").java.srcDirs("src/test")
}
tasks {
addKtlintFormatGitPreCommitHook {
mustRunAfter(
"processResources",
"processTestResources",
"loadKtlintReporters",
"runKtlintCheckOverKotlinScripts",
"runKtlintCheckOverMainSourceSet",
"runKtlintCheckOverTestSourceSet",
"ktlintKotlinScriptCheck",
"ktlintMainSourceSetCheck",
"ktlintTestSourceSetCheck"
)
}
}