Search Gradle plugins

Owner: nico

Applies the Spex testing conventions and adds Spex's Mockito wrappers (the Doubles facade) to the consuming project's test suite, for tests using mocks, spies, stubs, and verifications.

https://codeberg.org/spectacular/spex-conventions

Sources: https://codeberg.org/spectacular/spex-conventions.git

Version 2026.05.10 (latest)

Created 25 May 2026.

Applies the Spex testing conventions and adds Spex's Mockito wrappers (the Doubles facade) to the consuming project's test suite, for tests using mocks, spies, stubs, and verifications.

Add this plugin to your build using the plugins DSL:

plugins {
  id("software.visionary.spex-mockito-testing") version "2026.05.10"
}

See also:

  • Adding the plugin to build logic for usage in precompiled script plugins.

    See the relevant documentation for more information.

    Add this plugin as a dependency to <convention-plugins-build>/build.gradle(.kts):

    dependencies {
      implementation("software.visionary.spex-mockito-testing:software.visionary.spex-mockito-testing.gradle.plugin:2026.05.10")
    }
    It can then be applied in the precompiled script plugin:
    plugins {
      id("software.visionary.spex-mockito-testing")
    }
  • The legacy method of plugin application. See the relevant documentation for more information.
    buildscript {
      repositories {
        gradlePluginPortal()
      }
      dependencies {
        classpath("software.visionary.spex-mockito-testing:software.visionary.spex-mockito-testing.gradle.plugin:2026.05.10")
      }
    }
    
    apply(plugin = "software.visionary.spex-mockito-testing")
  • Applying plugins to all subprojects .