Browse Source

Add hints to tell idea where generated sources are

This doesn't seem to actually mark them as generated, but they're
marked as source/test dirs which stops the annoying errors every
time you sync.
pull/443/head
Chris Smith 9 years ago
parent
commit
15ef6850c8
1 changed files with 9 additions and 0 deletions
  1. 9
    0
      build.gradle

+ 9
- 0
build.gradle View File

@@ -15,6 +15,15 @@ apply plugin: 'maven-publish'
15 15
 apply plugin: 'java'
16 16
 apply plugin: 'findbugs'
17 17
 apply plugin: 'pmd'
18
+apply plugin: 'idea'
19
+
20
+idea {
21
+    module {
22
+         sourceDirs = [file('src'), file('generated')]
23
+         testSourceDirs = [file('test'), file('generated_tests')]
24
+         generatedSourceDirs = [file('generated'), file('generated_tests')]
25
+    }
26
+}
18 27
 
19 28
 configurations {
20 29
     bundle

Loading…
Cancel
Save