changeset 240:05a1bbd319bc

remove idea customizations
author smith@nwoca.org
date Tue, 25 Oct 2016 16:43:00 +0100
parents 60c552fce00d
children 1c91b76fd9a3
files init20.gradle
diffstat 1 files changed, 1 insertions(+), 83 deletions(-) [+]
line wrap: on
line diff
--- a/init20.gradle	Fri Oct 21 18:16:09 2016 +0100
+++ b/init20.gradle	Tue Oct 25 16:43:00 2016 +0100
@@ -136,91 +136,9 @@
 apply from: "${gradle.ssdtDevelkitLocation}/metrics.gradle"
 
 rootProject.afterEvaluate { r ->
-
     if (gradle.bambooBuild && r.hasProperty('requireJavaVersion')) {
         gradle.runtimeInfo.requireJava( r.getProperty('requireJavaVersion') )
-    }
-
-    if (r.plugins.hasPlugin(org.gradle.plugins.ide.idea.IdeaPlugin)) {
-
-        r.idea.project.ipr.withXml { xml ->
-            if (file('.hg').exists()) {
-                println 'enabling HG on project'
-                def vcs = findComponent(xml.asNode(), 'VcsDirectoryMappings')
-                vcs.mapping.@vcs = 'hg4idea'
-            }
-
-            def codeStyle = findComponent(xml.asNode(), 'ProjectCodeStyleSettingsManager')
-            if (codeStyle) {
-                xml.asNode().remove(codeStyle)
-            }
-
-            def styleManager = xml.asNode().appendNode('component', [name: 'ProjectCodeStyleSettingsManager'])
-            styleManager.appendNode 'option', [name: 'USE_PER_PROJECT_SETTINGS', value: true]
-
-            def styleOptions = new NodeBuilder().option(name: 'PER_PROJECT_SETTINGS') {
-                value {
-                    GroovyCodeStyleSettings {
-                        option(name: 'CLASS_COUNT_TO_USE_IMPORT_ON_DEMAND', value: '10')
-                        option(name: 'PACKAGES_TO_USE_IMPORT_ON_DEMAND') {
-                            value {
-                                'package'(name: "java.awt", withSubpackages: false, static: false)
-                                'package'(name: "javax.swing", withSubpackages: false, static: false)
-                                'package'(name: "javax.persistence", withSubpackages: false, static: false)
-                                'package'(name: "javax.validation", withSubpackages: true, static: false)
-                            }
-                        }
-                    }
-                    XML {
-                        option(name: 'XML_LEGACY_SETTINGS_IMPORTED', value: true)
-                    }
-
-                }
-            }
-
-            styleManager.append styleOptions
-
-            if (r.group.contains('org.ssdt')) {
-
-                def copyRight = findComponent(xml.asNode(), 'CopyrightManager')
-                if (copyRight) {
-                    xml.asNode().remove(copyRight)
-                }
-
-                copyRight = new NodeBuilder().component(name: 'CopyrightManager', default: 'ODE') {
-
-                    copyright {
-                        option(name: 'notice', value: 'Copyright (c) $today.year.  Ohio Department of Education. - All Rights Reserved.\nUnauthorized copying of this file, in any medium, is strictly prohibited.\nWritten by State Software Development Team (http://ssdt.oecn.k12.oh.us/)')
-                        option(name: 'keyword', value: 'Copyright')
-                        option(name: 'allowReplaceKeyword', value: 'South Front')
-                        option(name: 'myName', value: 'ODE')
-                        option(name: 'myLocal', value: true)
-                    }
-                    LanguageOptions(name: 'CSS') {
-                        option(name: 'fileTypeOverride', value: 1)
-                    }
-                    LanguageOptions(name: 'JSP') {
-                        option(name: 'fileTypeOverride', value: 1)
-                        option(name: 'prefixLines', value: false)
-                    }
-                    LanguageOptions(name: 'JSPX') {
-                        option(name: 'fileTypeOverride', value: 1)
-                        option(name: 'prefixLines', value: false)
-                    }
-                    LanguageOptions(name: 'JavaScript') {
-                        option(name: 'fileTypeOverride', value: 1)
-                    }
-                    LanguageOptions(name: 'Properties') {
-                        option(name: 'fileTypeOverride', value: 1)
-                    }
-                }
-
-                xml.asNode().append copyRight
-
-            }
-        }
-    }
-
+    }   
 }
 
 def findComponent(project, name) {