forked from jqwik-team/jqwik-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
47 lines (38 loc) · 1.29 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.7.20"
}
repositories {
mavenCentral()
// Only necessary if you use jqwik's SNAPSHOT releases:
// maven(url = "https://oss.sonatype.org/content/repositories/snapshots")
}
dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib")
testImplementation("net.jqwik:jqwik:1.7.1")
testImplementation("net.jqwik:jqwik-kotlin:1.7.1")
testImplementation("org.assertj:assertj-core:3.23.1")
// Optional but recommended to get annotation related API warnings, e.g. for @CheckReturnValue
compileOnly("org.jetbrains:annotations:23.0.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> {
kotlinOptions {
freeCompilerArgs = listOf(
"-Xjsr305=strict", // Strict interpretation of nullability annotations in jqwik API
"-Xemit-jvm-type-annotations" // Enable nnotations on type variables
)
jvmTarget = "11" // 1.8 or above
javaParameters = true // Get correct parameter names in jqwik reporting
}
}
tasks.withType<Wrapper> {
gradleVersion = "7.6"
}