[GRADLE-1018] IDEA plugin should automatically add Scala facet to module Created: 05/Jul/10 Updated: 11/Mar/13 Resolved: 04/Feb/13
It would be good to have the Scala Facet section automatically generated in the .iml file.
When manually adding the Scala Facet, this is generated:
However, in the build file you specify scalaTools dependencies:
It would be good to have a simple way to add these compiler and library dependencies, so that IntelliJ uses the same libs as Gradle:
It is mainly the path resolution thingy that is needed, since the rest is simple xlm generation.
If the components for doing this is already in place, an example in the "modify XML" part of the documentation would be great.
|Comment by David Rosell [ 05/Jul/10 ]|
Sorry, priority ought to be minor - the workaround is to edit in the file, clunky but doable.
|Comment by Michael Franz [ 22/Dec/12 ]|
For teams using gradle and Scala, this feature is a must.
|Comment by Peter Walker (Inactive) [ 24/Dec/12 ]|
I can import this build script using Idea 12.0.1.
and it generates a facet like so:
This appeared correct in the IDE - can you highlight what still isnt working?
|Comment by Michael Franz [ 24/Dec/12 ]|
Using Gradle 1.3 in an empty project I get the following errors when running 'gradle':
FAILURE: Build failed with an exception.
Where line 10 is: testCompile project(':collections-testutils')
Importing as a new project into IntelliJ 11.1.4 does not create a Scala facet.
My expected usage would be:
|Comment by Peter Walker (Inactive) [ 28/Dec/12 ]|
Once gradle idea is run, Idea will automatically refresh.
I have a sample scala project @ https://github.com/peterwalker/scala-samples.
|Comment by Peter Walker (Inactive) [ 05/Feb/13 ]|
I have tested https://github.com/peterwalker/scala-samples with the latest nightly ( gradle-1.5-20130204201733 ) and gradle idea now generates scala facets.