[Solved] Gradle can not build Simple Play App

I am trying to use play with gradle. I create sample app with “activator
new simple-app play-scala”. Then I created build.gradle in simple-app and run gradle
build I got this error: https://gist.github.com/araknafobia/7e7715333ca8d292c09fc2afac62e9f0
build.gradle => https://gist.github.com/araknafobia/9b26a1389725074df6766689ac745dcf

Can someone verify that?


Gradle 3.0

Build time: 2016-08-15 13:15:01 UTC
Revision: ad76ba00f59ecb287bd3c037bd25fc3df13ca558

Groovy: 2.4.7
Ant: Apache Ant™ version 1.9.6 compiled on June 29 2015
JVM: 1.8.0_92 (Oracle Corporation 25.92-b14)
OS: Mac OS X 10.11.5 x86_64
Activator 1.3.10
Scala 2.11.8

Maybe this example application helps: https://github.com/simonharrer/play-java-gradle-example

It is also available in scale: https://github.com/marc0der/play-scala-gradle-template

Hi @simon_harrer, thanks for your interest and answer.
I figured out that it was related with Play version.
When I create project with activator it uses latest version and it was 2.5.x that time. As I mentioned in my question, I was using gradle 3.0 and Play 2.5 was not supported.That is the reason why build is failed.

We were lucky that unofficial version of Play 2.5.x was on way and we use it from github releases :slight_smile:

BTW, it might be a good idea to add test folder to your gradle-play templates :slight_smile:

I am glad I could help.

Maybe you would like to contribute to the example? :slight_smile: