-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
65 lines (56 loc) · 1.82 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
buildscript {
repositories {
mavenCentral()
}
}
plugins {
kotlin("jvm") version "1.6.20"
id("com.bnorm.power.kotlin-power-assert") version "0.11.0"
}
repositories {
mavenCentral()
maven(url = "https://s01.oss.sonatype.org/content/repositories/snapshots")
}
dependencies {
testImplementation("org.junit.jupiter:junit-jupiter:5.8.2")
testImplementation("net.jqwik:jqwik:1.7.0-SNAPSHOT")
testImplementation("net.jqwik:jqwik-kotlin:1.7.0-SNAPSHOT")
testImplementation("org.assertj:assertj-core:3.22.0")
testImplementation("io.kotest:kotest-runner-junit5:5.3.0")
testImplementation("io.kotest:kotest-property-jvm:5.3.0")
testImplementation(kotlin("test"))
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.1")
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.6.1")
}
tasks.withType<Test> {
useJUnitPlatform {
include("net/**/*Properties.class")
include("net/**/*Example.class")
include("net/**/*Examples.class")
include("net/**/*Test.class")
include("net/**/*Tests.class")
}
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf(
"-Xjsr305=strict", // Required for strict interpretation of
"-Xemit-jvm-type-annotations" // Required for annotations on type variables
)
jvmTarget = "17" // 1.8 or above
javaParameters = true // Required to get correct parameter names in reporting
}
}
tasks.withType<Wrapper> {
gradleVersion = "7.4.2"
}
configure<com.bnorm.power.PowerAssertGradleExtension> {
functions = listOf(
"kotlin.assert",
"kotlin.require",
"kotlin.check",
"kotlin.test.assertTrue",
"kotlin.test.assertIs"
)
}