Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added idea bits

  • Loading branch information...
commit d046b1c7ad831acdc1ec25867a3fdacb66b90a34 1 parent 2a8456f
@alkemist alkemist authored
Showing with 45 additions and 0 deletions.
  1. +3 −0  .gitignore
  2. +14 −0 build.gradle
  3. +28 −0 ideaCodeStyle.xml
View
3  .gitignore
@@ -2,3 +2,6 @@
build/
bin/
.settings/
+*.iml
+*.ipr
+*.iws
View
14 build.gradle
@@ -2,6 +2,7 @@ import org.apache.ivy.util.url.CredentialsStore
apply plugin: 'groovy'
apply plugin: 'maven'
+apply plugin: 'idea'
group = 'org.grails'
version = '1.1.0'
@@ -34,6 +35,19 @@ uploadArchives {
}
}
+idea {
+ project {
+ jdkName "1.6"
+ ipr {
+ withXml { provider ->
+ def node = provider.asNode()
+ node.component.find { it.'@name' == 'VcsDirectoryMappings' }?.mapping[0].'@vcs' = 'Git'
+ node.append(new XmlParser().parse(file("ideaCodeStyle.xml")))
+ }
+ }
+ }
+}
+
task wrapper(type: Wrapper) {
gradleVersion = "1.0-milestone-6"
}
View
28 ideaCodeStyle.xml
@@ -0,0 +1,28 @@
+<component name="CodeStyleSettingsManager">
+ <option name="PER_PROJECT_SETTINGS">
+ <value>
+ <option name="USE_SAME_INDENTS" value="true"/>
+ <option name="RIGHT_MARGIN" value="200"/>
+ <option name="JD_ALIGN_PARAM_COMMENTS" value="false"/>
+ <option name="JD_ALIGN_EXCEPTION_COMMENTS" value="false"/>
+ <option name="JD_P_AT_EMPTY_LINES" value="false"/>
+ <option name="JD_KEEP_EMPTY_PARAMETER" value="false"/>
+ <option name="JD_KEEP_EMPTY_EXCEPTION" value="false"/>
+ <option name="JD_KEEP_EMPTY_RETURN" value="false"/>
+ <option name="WRAP_COMMENTS" value="true"/>
+ <option name="IF_BRACE_FORCE" value="3"/>
+ <option name="DOWHILE_BRACE_FORCE" value="3"/>
+ <option name="WHILE_BRACE_FORCE" value="3"/>
+ <option name="FOR_BRACE_FORCE" value="3"/>
+ <option name="INDENT_SIZE" value="4"/>
+ <option name="CONTINUATION_INDENT_SIZE" value="4"/>
+ <option name="TAB_SIZE" value="4"/>
+ <option name="USE_TAB_CHARACTER" value="false"/>
+ <option name="SMART_TABS" value="false"/>
+ <option name="LABEL_INDENT_SIZE" value="0"/>
+ <option name="LABEL_INDENT_ABSOLUTE" value="false"/>
+ <option name="USE_RELATIVE_INDENTS" value="false"/>
+ </value>
+ </option>
+ <option name="USE_PER_PROJECT_SETTINGS" value="true"/>
+</component>
Please sign in to comment.
Something went wrong with that request. Please try again.