My project started with a single build.gradle (no multi-project). The project has src/test/java
and src/test/kotlin
folders.
So far, I have applied the configuration for both projects.
Main problem is the incompatibility with JDK 9 for java
submodule and JDK 8 for kotlin
submodule. With this error message
Could not target platform: 'Java SE 9' using tool chain: 'JDK 8 (1.8)'.
I want to apply:
- only to
src/test/java
a specific config (sourceCompatibility = 1.9) - same to
src/test/kotlin
this config (kotlinOptions.jvmTarget = "1.8")
How can I split both folders (java and kotlin) into submodules without moving files ? The folders don't have to be split as submodules. I only want to apply different compilations options.
The project build.gradle is there