diff --git a/subprojects/scala/src/integTest/groovy/org/gradle/scala/ScalaPluginIntegrationTest.groovy b/subprojects/scala/src/integTest/groovy/org/gradle/scala/ScalaPluginIntegrationTest.groovy index 8f08b5ff5509..f151f9c73573 100644 --- a/subprojects/scala/src/integTest/groovy/org/gradle/scala/ScalaPluginIntegrationTest.groovy +++ b/subprojects/scala/src/integTest/groovy/org/gradle/scala/ScalaPluginIntegrationTest.groovy @@ -15,6 +15,7 @@ */ package org.gradle.scala +import groovy.transform.NotYetImplemented import org.gradle.integtests.fixtures.AbstractIntegrationSpec import spock.lang.Issue @@ -146,4 +147,51 @@ task someTask expect: succeeds(":other:resolve") } + + @NotYetImplemented + @Issue("https://github.com/gradle/gradle/issues/7014") + def "can use Scala with war and ear plugins"() { + settingsFile << """ + include 'war', 'ear' + """ + buildFile << """ + allprojects { + repositories { + ${jcenterRepository()} + } + apply plugin: 'scala' + + dependencies { + compile("org.scala-lang:scala-library:2.12.6") + } + } + project(":war") { + apply plugin: 'war' + } + project(":ear") { + apply plugin: 'ear' + dependencies { + deploy project(path: ':war', configuration: 'archives') + } + } + """ + file("war/src/main/scala/Bar.scala") << """ + class Bar { + } + """ + expect: + succeeds(":ear:assemble") + file("ear/build/tmp/ear/application.xml").text == """ + + ear + + + war.war + war + + + lib + +""" + } }