Converting SBT/Play project to Gradle

Mostly for fun I’ve been trying to convert a Play+SBT project to gradle; I’m having problems adding a secondary test task/source set to the build.

These being incubating features from a nightly, I quite understand if the response is “can’t do it yet”.

I know how to accomplish this for old-style plain java/scala projects, but with the new model/play plugin I can’t seem to make it work.

I have some standard sub-projects for the non-play stuff, and a blah-app play-subproject that does the play stuff.

My blah-app/build.gradle looks like this: https://gist.github.com/gsson/a0e343bb0c4dc2c65c3e

And I’m getting this (or similar) errors (when using gradle 2.11-20151217230031+0000):

$ ./gradlew clean blah-app:test2BinaryTest
Parallel execution is an incubating feature.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':blah-app'.
> The following model rules could not be applied due to unbound inputs and/or subjects:
  
    test2(org.gradle.jvm.test.JUnitTestSuiteSpec) { ... } @ blah-app/build.gradle line 30, column 9 > named(scala)
      subject:
        - components.test2.sources.scala LanguageSourceSet [*]
            suggestions: components.test2.sources.java
  
  [*] - indicates that a model item could not be found for the path or type.