srs/gradle-node-plugin

Allow defining sourceSets

rocketraman opened this issue · 1 comments

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?

deepy commented

I can't think of any major downsides of using the java plugin in a pure JavaScript project, so just apply that and you'll get sourceSets and all