changeset 269:bf415185af13

add default copyright notice config for intellij
author smith@nwoca.org
date Sat, 05 Jan 2019 19:27:09 +0000
parents f1f4ec4633ca
children d9f3e7fe251f
files ODE-copyright.xml init40.gradle profiles_settings-copyright.xml
diffstat 3 files changed, 17 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ODE-copyright.xml	Sat Jan 05 19:27:09 2019 +0000
@@ -0,0 +1,6 @@
+<component name="CopyrightManager">
+  <copyright>
+    <option name="notice" value="Copyright (c) &amp;#36;today.year.  Ohio Department of Education. - All Rights Reserved.&#10;Unauthorized copying of this file, in any medium, is strictly prohibited.&#10;Written by State Software Development Team (http://ssdt.oecn.k12.oh.us/)&#10;" />
+    <option name="myName" value="ODE" />
+  </copyright>
+</component>
\ No newline at end of file
--- 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})$/)
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/profiles_settings-copyright.xml	Sat Jan 05 19:27:09 2019 +0000
@@ -0,0 +1,3 @@
+<component name="CopyrightManager">
+  <settings default="ODE" />
+</component>
\ No newline at end of file