comparison 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
comparison
equal deleted inserted replaced
268:f1f4ec4633ca 269:bf415185af13
6 repositories { 6 repositories {
7 maven { url 'http://repos.ssdt.nwoca.org/artifactory/ssdt-repo' } 7 maven { url 'http://repos.ssdt.nwoca.org/artifactory/ssdt-repo' }
8 maven { url 'http://repos.ssdt.nwoca.org/artifactory/gradle-plugins' } 8 maven { url 'http://repos.ssdt.nwoca.org/artifactory/gradle-plugins' }
9 } 9 }
10 } 10 }
11
12 // buildScan { termsOfServiceUrl = 'https://gradle.com/terms-of-service'; termsOfServiceAgree = 'yes' }
11 13
12 final GradleVersion gradleCurrent = GradleVersion.current() 14 final GradleVersion gradleCurrent = GradleVersion.current()
13 final GradleVersion gradleV410 = GradleVersion.version('4.10') 15 final GradleVersion gradleV410 = GradleVersion.version('4.10')
14 16
15 println "Gradle Version: $gradleCurrent" 17 println "Gradle Version: $gradleCurrent"
139 141
140 rootProject.afterEvaluate { r -> 142 rootProject.afterEvaluate { r ->
141 if (gradle.bambooBuild && r.hasProperty('requireJavaVersion')) { 143 if (gradle.bambooBuild && r.hasProperty('requireJavaVersion')) {
142 gradle.runtimeInfo.requireJava( r.getProperty('requireJavaVersion') ) 144 gradle.runtimeInfo.requireJava( r.getProperty('requireJavaVersion') )
143 } 145 }
146 if (!gradle.bambooBuild && !r.file('.idea/copyright/ODE.xml').exists() ) {
147 r.file('.idea/copyright').mkdirs()
148 r.file('.idea/copyright/ODE.xml').text = new File("${gradle.ssdtDevelkitLocation}/ODE-copyright.xml").text
149 r.file('.idea/copyright/profiles_settings.xml').text = new File("${gradle.ssdtDevelkitLocation}/profiles_settings-copyright.xml").text
150 }
144 } 151 }
145 152
146 def findComponent(project, name) { 153 def findComponent(project, name) {
147 project.component.find { it.@name == name } 154 project.component.find { it.@name == name }
148 } 155 }
275 } 282 }
276 283
277 } 284 }
278 285
279 rootProject.afterEvaluate { 286 rootProject.afterEvaluate {
280 287
281 tasks.addRule("release{Major|Minor|Patch|n.n.n}: create release branch or update release Lock file") { String taskName -> 288 tasks.addRule("release{Major|Minor|Patch|n.n.n}: create release branch or update release Lock file") { String taskName ->
282 289
283 def matcher = (taskName =~ /^release(Major|Minor|Patch|\d{1,3}\.\d{1,3}\.\d{1,3})$/) 290 def matcher = (taskName =~ /^release(Major|Minor|Patch|\d{1,3}\.\d{1,3}\.\d{1,3})$/)
284 if (matcher.matches()) { 291 if (matcher.matches()) {
285 292