-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathbuild.gradle.kts
49 lines (40 loc) · 1.5 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "2.0.0"
}
repositories {
mavenCentral()
// Only necessary if you use jqwik's SNAPSHOT releases:
maven(url = "https://s01.oss.sonatype.org/content/repositories/snapshots")
}
dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib")
testImplementation("net.jqwik:jqwik:1.9.0-SNAPSHOT")
testImplementation("net.jqwik:jqwik-kotlin:1.9.0-SNAPSHOT")
testImplementation("org.assertj:assertj-core:3.26.0")
// Optional but recommended to get annotation related API warnings, e.g. for @CheckReturnValue
compileOnly("org.jspecify:jspecify:0.3.0")
compileOnly("com.google.errorprone:error_prone_annotations:2.28.0")
}
tasks.withType<Test> {
useJUnitPlatform()
// To allow other naming conventions
include("**/*Properties.class")
include("**/*Examples.class")
include("**/*Test.class")
include("**/*Tests.class")
}
tasks.withType<KotlinCompile> {
compilerOptions {
freeCompilerArgs = listOf(
"[email protected]:strict",
"-Xemit-jvm-type-annotations" // Enable annotations on type variables
)
apiVersion = org.jetbrains.kotlin.gradle.dsl.KotlinVersion.KOTLIN_2_0
languageVersion = org.jetbrains.kotlin.gradle.dsl.KotlinVersion.KOTLIN_2_0
javaParameters = true // Get correct parameter names in jqwik reporting
}
}
tasks.withType<Wrapper> {
gradleVersion = "8.7"
}