From 1cc82aa5941567c54ba2ec3393d60de17835270d Mon Sep 17 00:00:00 2001 From: Paul Merlin Date: Fri, 11 Sep 2020 16:25:01 +0200 Subject: [PATCH] Add @NotYetImplemented test for minimize() & configuration cache Signed-off-by: Paul Merlin --- .../shadow/ConfigurationCacheSpec.groovy | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/test/groovy/com/github/jengelman/gradle/plugins/shadow/ConfigurationCacheSpec.groovy b/src/test/groovy/com/github/jengelman/gradle/plugins/shadow/ConfigurationCacheSpec.groovy index 8f659438a..af4f205fb 100644 --- a/src/test/groovy/com/github/jengelman/gradle/plugins/shadow/ConfigurationCacheSpec.groovy +++ b/src/test/groovy/com/github/jengelman/gradle/plugins/shadow/ConfigurationCacheSpec.groovy @@ -1,6 +1,7 @@ package com.github.jengelman.gradle.plugins.shadow import com.github.jengelman.gradle.plugins.shadow.util.PluginSpecification +import groovy.transform.NotYetImplemented import org.gradle.util.GradleVersion import spock.lang.IgnoreIf @@ -84,4 +85,26 @@ class ConfigurationCacheSpec extends PluginSpecification { doesNotContain(output, ['a2.properties']) result.output.contains("Reusing configuration cache.") } + + @NotYetImplemented + def "configuration caching supports minimize"() { + given: + buildFile << """ + shadowJar { + minimize() + } + """.stripIndent() + + when: + runner.withArguments('--configuration-cache', 'shadowJar').build() + output.delete() + def result = runner.withArguments('--configuration-cache', 'shadowJar').build() + + then: + contains(output, ['a.properties', 'b.properties']) + + and: + doesNotContain(output, ['a2.properties']) + result.output.contains("Reusing configuration cache.") + } }