Search Gradle plugins

Owner: 8trees

Generates AGP Compose Preview Screenshot Testing wrappers from a single marker annotation on your @Preview functions, instead of hand-duplicating them in the screenshotTest source set.

https://github.com/HayatoYagi/compose-preview-toolkit

Sources: https://github.com/HayatoYagi/compose-preview-toolkit

Version 0.1.0 (latest)

Created 11 August 2026.

Generates AGP Compose Preview Screenshot Testing wrappers from a single marker annotation on your @Preview functions, instead of hand-duplicating them in the screenshotTest source set.

Add this plugin to your build using the plugins DSL:

plugins {
  id("io.github.hayatoyagi.compose-preview-toolkit") version "0.1.0"
}

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("io.github.hayatoyagi.compose-preview-toolkit:io.github.hayatoyagi.compose-preview-toolkit.gradle.plugin:0.1.0")
    }
    It can then be applied in the precompiled script plugin:
    plugins {
      id("io.github.hayatoyagi.compose-preview-toolkit")
    }
  • The legacy method of plugin application. See the relevant documentation for more information.
    buildscript {
      repositories {
        gradlePluginPortal()
      }
      dependencies {
        classpath("io.github.hayatoyagi.compose-preview-toolkit:io.github.hayatoyagi.compose-preview-toolkit.gradle.plugin:0.1.0")
      }
    }
    
    apply(plugin = "io.github.hayatoyagi.compose-preview-toolkit")
  • Applying plugins to all subprojects .