When importing a project into IntelliJ using Gradle, IntelliJ relies on Gradle's project model to determine what is a source directory.
For Java projects, one can use the sourceSets directive to configure this.
However, for JavaScript projects using this plugin, you just get the error:
> Could not find method sourceSets() for arguments [build_5aqvwz7r7otkodftzte4pzf0c$_run_closure1@6ed10bf8] on project ':x' of type org.gradle.api.Project.
Is there a way to allow defining a directory as "sources" so that IJ can configure the project model correctly?
When importing a project into IntelliJ using Gradle, IntelliJ relies on Gradle's project model to determine what is a source directory.
For Java projects, one can use the
sourceSets
directive to configure this.However, for JavaScript projects using this plugin, you just get the error:
Is there a way to allow defining a directory as "sources" so that IJ can configure the project model correctly?