Skip to content

Instantly share code, notes, and snippets.

@cdsap
cdsap / README.md
Last active August 8, 2022 18:15 — forked from alextu/README.md

Snippet to apply retry plugin to all projects only supporting Junit5 platform

settings.gradle

plugins {
    id "org.gradle.test-retry" version "1.4.0" apply false
}

def isCiServer = System.getenv().containsKey("CI")
gradle.beforeProject { p ->
    p.pluginManager.withPlugin("java") {