Skip to content

Commit

Permalink
Reproduce #10311
Browse files Browse the repository at this point in the history
  • Loading branch information
big-guy committed Aug 21, 2019
1 parent f0b9d60 commit 1ceb94f
Showing 1 changed file with 29 additions and 0 deletions.
Expand Up @@ -23,6 +23,7 @@ import org.gradle.test.fixtures.archive.TarTestFixture
import org.gradle.test.fixtures.file.TestFile
import org.hamcrest.CoreMatchers
import org.junit.Assume
import spock.lang.Ignore
import spock.lang.Issue
import spock.lang.Unroll

Expand Down Expand Up @@ -808,6 +809,34 @@ class ArchiveIntegrationTest extends AbstractIntegrationSpec {
false | ["file2.txt", "file3.txt"]
}

@Ignore
@Unroll
@Issue("https://github.com/gradle/gradle/issues/10311")
def "can clear version property on #taskType tasks"() {
buildFile << """
apply plugin: 'base'
version = "1.0"
task archive(type: $taskType) {
from("src")
version = null
}
"""
settingsFile << """
rootProject.name = "archive"
"""
file("src/input").touch()
when:
succeeds "archive"
then:
file(archiveFile).assertExists()

where:
taskType | archiveFile
"Zip" | "build/distributions/archive.zip"
"Jar" | "build/libs/archive.jar"
"Tar" | "build/distributions/archive.tar"
}

private def createTar(String name, Closure cl) {
TestFile tarRoot = file("${name}.root")
TestFile tar = file(name)
Expand Down

0 comments on commit 1ceb94f

Please sign in to comment.