diff init40.gradle @ 269:bf415185af13

add default copyright notice config for intellij
author smith@nwoca.org
date Sat, 05 Jan 2019 19:27:09 +0000
parents d0ad38ee7dec
children d9f3e7fe251f
line wrap: on
line diff
--- a/init40.gradle	Thu Nov 29 15:43:43 2018 +0000
+++ b/init40.gradle	Sat Jan 05 19:27:09 2019 +0000
@@ -9,6 +9,8 @@
     }
 }
 
+// buildScan { termsOfServiceUrl = 'https://gradle.com/terms-of-service'; termsOfServiceAgree = 'yes' }
+
 final GradleVersion gradleCurrent = GradleVersion.current()
 final GradleVersion gradleV410 = GradleVersion.version('4.10')
 
@@ -141,6 +143,11 @@
     if (gradle.bambooBuild && r.hasProperty('requireJavaVersion')) {
         gradle.runtimeInfo.requireJava( r.getProperty('requireJavaVersion') )
     }   
+    if (!gradle.bambooBuild && !r.file('.idea/copyright/ODE.xml').exists() ) {
+        r.file('.idea/copyright').mkdirs()
+        r.file('.idea/copyright/ODE.xml').text = new File("${gradle.ssdtDevelkitLocation}/ODE-copyright.xml").text
+        r.file('.idea/copyright/profiles_settings.xml').text = new File("${gradle.ssdtDevelkitLocation}/profiles_settings-copyright.xml").text
+    }
 }
 
 def findComponent(project, name) {
@@ -277,7 +284,7 @@
 }
 
 rootProject.afterEvaluate {
-
+    
     tasks.addRule("release{Major|Minor|Patch|n.n.n}: create release branch or update release Lock file") { String taskName ->
 
         def matcher = (taskName =~ /^release(Major|Minor|Patch|\d{1,3}\.\d{1,3}\.\d{1,3})$/)