Skip to content

@lacasseio lacasseio released this Sep 7, 2021

This release adds support for ad-hoc Gradle version coverage. Previous versions supported only three version coverage (e.g. minimum, latest global available (GA) and latest nightly). The following code snippet shows how to create ad-hoc Gradle version coverage:

testingStrategies = [strategies.coverageForGradleVersion('6.6')]

We also improved the testing strategy's API by exposing the selected Gradle version. This small change allows support for runtime dependencies for specific Gradle versions. One example is using different Gradle API versions when unit testing, e.g. testing using ProjectBuilder API. The following code snippet shows how to configure different Gradle API versions per Test task:

test {
    testingStrategies = [strategies.coverageForGradleVersion('6.9')]
    testTasks.configureEach {
        classpath = files( {
        }.orElse([])) + classpath
        // Note that we are prepending the dependencies to ensure they get selected
Assets 2

@lacasseio lacasseio released this Jun 28, 2021

This release adds compatibility information for Gradle 6.9, 7.0 and 7.1. We will also soon shift away from the current Gradle fixtures into a more testing framework agnostic implementation. There are several issue with the current approach so if your build depends on those fixtures, please open an issue with the features you are relying on.

Assets 2

@lacasseio lacasseio released this Mar 9, 2021

This release has some quality of life improvement to the development plugins mainly for users behind corporate firewall where the default repositories would conflict with organization repositories where Maven Central and such are often allowed only through proxy artifact repositories. We slimed down the number of repositories we defined by default to a single one. However, you can opt-out by using gradlePlugin.[java|groovy].disableDefaultRepositories() or using the System property dev.gradleplugins.default-repositories=disabled.

For users building using a Gradle snapshot version without a minimum Gradle version specified, we will use the local Gradle API, e.g. the generated Jar from the Gradle distribution. If you have slow internet or simply want to use local Gradle API, set gradlePlugin.compatibility.gradleApiVersion to local. Not that using the local version will negate all benefit you would normally have by using the rereleased Gradle API such as source Jars and a narrow view of the API to include only your minimum Gradle APIs.

Gradle runner kit now support setting the working directory using a Path instance or a Supplier of Path or File for convenience when testing under Java like JUnit 5.

Assets 2

@lacasseio lacasseio released this Feb 15, 2021

This release's driving force is JFrog's announcement to sunset Bintray, which the development plugins were dependent upon.
It also includes lots of minor changes, mainly the split of Gradle Runner Kit from Gradle fixtures.
There is also an up-to-date Gradle compatibility class for newer Gradle's Groovy/Kotlin dependencies.

Assets 2