-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle.kts
53 lines (48 loc) · 1.79 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
plugins {
id("groovy")
id("org.gradlex.internal.plugin-publish-conventions") version "0.6"
}
group = "org.gradlex"
version = "1.5"
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
dependencies {
testImplementation("org.spockframework:spock-core:2.1-groovy-3.0")
testImplementation("org.gradle.exemplar:samples-check:1.0.2")
testRuntimeOnly("org.junit.vintage:junit-vintage-engine")
}
pluginPublishConventions {
id("${project.group}.${project.name}")
implementationClass("org.gradlex.javamodule.testing.JavaModuleTestingPlugin")
displayName("Java Module Testing Gradle Plugin")
description("A plugin to test Java Modules (whitebox and blackbox) without the hassle.")
tags("gradlex", "java", "modularity", "jigsaw", "jpms", "testing")
gitHub("https://github.com/gradlex-org/java-module-testing")
developer {
id.set("jjohannes")
name.set("Jendrik Johannes")
email.set("[email protected]")
}
}
testing.suites.named<JvmTestSuite>("test") {
useJUnitJupiter()
listOf("7.4", "7.6.4", "8.0.2").forEach { gradleVersionUnderTest ->
targets.register("test${gradleVersionUnderTest}") {
testTask {
group = LifecycleBasePlugin.VERIFICATION_GROUP
description = "Runs tests against Gradle $gradleVersionUnderTest"
systemProperty("gradleVersionUnderTest", gradleVersionUnderTest)
exclude("**/*SamplesTest.class") // Not yet cross-version ready
}
}
}
targets.all {
testTask {
maxParallelForks = 4
inputs.dir(layout.projectDirectory.dir("samples"))
inputs.dir("samples")
}
}
}