Skip to content
Merged
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
17 changes: 17 additions & 0 deletions .github/workflows/dependency-submission.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Dependency Submission

on: [ push ]

permissions:
contents: write

jobs:
dependency-submission:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: gradle/actions/dependency-submission@v5
with:
build-scan-publish: true
build-scan-terms-of-use-url: "https://gradle.com/help/legal-terms-of-use"
build-scan-terms-of-use-agree: "yes"
76 changes: 26 additions & 50 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,50 +1,26 @@
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"

publishingConventions {
pluginPortal("${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
Loading