Skip to content

Commit

Permalink
Reproduce failure in #6558
Browse files Browse the repository at this point in the history
  • Loading branch information
big-guy committed Sep 6, 2018
1 parent 78274e6 commit f4ada52
Showing 1 changed file with 46 additions and 1 deletion.
Expand Up @@ -16,6 +16,7 @@
package org.gradle.scala

import org.gradle.integtests.fixtures.AbstractIntegrationSpec
import spock.lang.Ignore
import spock.lang.Issue

class ScalaPluginIntegrationTest extends AbstractIntegrationSpec {
Expand All @@ -30,4 +31,48 @@ task someTask
expect:
succeeds("someTask")
}
}

@Ignore("this will sometimes fail/sometimes pass")
@Issue("https://github.com/gradle/gradle/issues/6558")
def "can build in parallel with lazy tasks"() {
settingsFile << """
include 'a', 'b', 'c', 'd'
"""
buildFile << """
allprojects {
repositories {
${jcenterRepository()}
}
plugins.withId("scala") {
dependencies {
compile("org.scala-lang:scala-library:2.12.6")
}
tasks.withType(ScalaCompile).configureEach {
}
}
}
"""
['a', 'b', 'c', 'd'].each { project ->
file("${project}/build.gradle") << """
plugins {
id 'scala'
}
"""
file("${project}/src/main/scala/${project}/${project.toUpperCase()}.scala") << """
package ${project}
trait ${project.toUpperCase()}
"""
}
file("a/build.gradle") << """
dependencies {
compile(project(":b"))
compile(project(":c"))
compile(project(":d"))
}
"""

expect:
succeeds(":a:classes", "--parallel")
}
}

0 comments on commit f4ada52

Please sign in to comment.