forked from gradlex-org/extra-java-module-info
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
55 lines (48 loc) · 1.73 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
plugins {
id("groovy")
id("org.gradlex.internal.plugin-publish-conventions") version "0.6"
}
group = "org.gradlex"
version = "1.7"
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
dependencies {
implementation("org.ow2.asm:asm:9.6")
testImplementation("org.spockframework:spock-core:2.3-groovy-3.0")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
pluginPublishConventions {
id("${project.group}.${project.name}")
implementationClass("org.gradlex.javamodule.moduleinfo.ExtraJavaModuleInfoPlugin")
displayName("Extra Java Module Info Gradle Plugin")
description("Add module information to legacy Java libraries.")
tags("gradlex", "java", "modularity", "jigsaw", "jpms")
gitHub("https://github.com/gradlex-org/extra-java-module-info")
developer {
id.set("jjohannes")
name.set("Jendrik Johannes")
email.set("jendrik@gradlex.org")
}
}
tasks.test {
description = "Runs tests against the Gradle version the plugin is built with"
classpath = sourceSets.test.get().runtimeClasspath
useJUnitPlatform()
maxParallelForks = 4
}
listOf("6.8.3", "6.9.2", "7.0.2", "7.6.1").forEach { gradleVersionUnderTest ->
val testGradle = tasks.register<Test>("testGradle$gradleVersionUnderTest") {
group = "verification"
description = "Runs tests against Gradle $gradleVersionUnderTest"
testClassesDirs = sourceSets.test.get().output.classesDirs
classpath = sourceSets.test.get().runtimeClasspath
useJUnitPlatform()
maxParallelForks = 4
systemProperty("gradleVersionUnderTest", gradleVersionUnderTest)
}
tasks.check {
dependsOn(testGradle)
}
}