Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ jobs:
steps:
- name: git clone
uses: actions/checkout@v5
- name: git clone gradlex-build-conventions
uses: actions/checkout@v5
with:
repository: gradlex-org/plugin-publish-conventions
path: build/plugin-publish-conventions
ref: new-convention-plugins
- name: Set up JDK
uses: actions/setup-java@v5
with:
Expand Down
75 changes: 25 additions & 50 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,50 +1,25 @@
plugins {
id("groovy")
id("org.gradlex.internal.plugin-publish-conventions") version "0.6"
}

group = "org.gradlex"
version = "1.7"

tasks.withType<JavaCompile>().configureEach { options.release = 8 }

dependencies {
testImplementation("org.spockframework:spock-core:2.3-groovy-4.0")
testImplementation("org.gradle.exemplar:samples-check:1.0.3")
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("jendrik@gradlex.org")
}
}

testing.suites.named<JvmTestSuite>("test") {
useJUnitJupiter()
listOf("7.4", "7.6.5", "8.0.2", "8.14.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")
}
}
}
version = "1.7"

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("jendrik@gradlex.org")
}
}

testingConventions { testGradleVersions("7.4", "7.6.5", "8.0.2", "8.14.2") }

// === the following custom configuration should be removed once tests are migrated to Java
apply(plugin = "groovy")

tasks.named<GroovyCompile>("compileTestGroovy") { targetCompatibility = "11" } // allow tests to run against 6.x

dependencies { testImplementation("org.spockframework:spock-core:2.3-groovy-4.0") } //
// ====================================================================================
8 changes: 0 additions & 8 deletions gradle/checkstyle/checkstyle.xml

This file was deleted.

15 changes: 0 additions & 15 deletions gradle/checkstyle/header.txt

This file was deleted.

1 change: 1 addition & 0 deletions gradle/gradle-daemon-jvm.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
toolchainVersion=17
Loading