gradle / gradle/playframework

Play application uses Java/Scala cross-compilation

Open
#72 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
47
Forks
41
PR merge metrics
No merged PRs in 30d

Description

This is more a question than a feature request. Currently, the Play application only configures the Scala compiler. It does not point the Java compiler to the Play sources so it will always say `NO-SOURCE`. The Scala compiler takes on compiling both source types, Scala and Java source files.

In turn users will have to add additional Java source directories to the Scala source set. In noticed that in one of the samples.

```
sourceSets {
main {
scala {
srcDir 'additional/java'
}
}
}
```

If we wanted the Java compiler to take on some work then we'd probably have to configure the compilers for cross-compilation.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.