Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow defining sourceSets #344

Open
rocketraman opened this issue Aug 7, 2019 · 1 comment
Open

Allow defining sourceSets #344

rocketraman opened this issue Aug 7, 2019 · 1 comment

Comments

@rocketraman
Copy link

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
Copy link

deepy commented Aug 7, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants