Mercurial > public > develkit
comparison init70.gradle @ 296:ca537e63716d
Comment out dead code for now. Add removal of /.m2/repository/org/ssdt_ohio maven report when cleaning local.
author | Marc Davis <marc.davis@mcoecn.org> |
---|---|
date | Wed, 21 Dec 2022 15:21:57 -0500 |
parents | 36b6c48ee6c7 |
children | 95d4eb5bff0f |
comparison
equal
deleted
inserted
replaced
293:d3b52c8d403c | 296:ca537e63716d |
---|---|
213 def localDir = new File(gradle.ivyUserDir + "/local") | 213 def localDir = new File(gradle.ivyUserDir + "/local") |
214 localDir.deleteDir() | 214 localDir.deleteDir() |
215 logger.info "verifying removal of local repo" | 215 logger.info "verifying removal of local repo" |
216 if (localDir.exists()) { | 216 if (localDir.exists()) { |
217 throw new org.gradle.api.GradleException("Unable to clean ${localDir}. Files may be locked by another process.") | 217 throw new org.gradle.api.GradleException("Unable to clean ${localDir}. Files may be locked by another process.") |
218 } | |
219 logger.info "removing local maven repo" | |
220 def localMaven = new File(System.getProperty('user.home') + "/.m2/repository/org/ssdt_ohio") | |
221 localMaven.deleteDir() | |
222 logger.info "verifying removal of local maven repo" | |
223 if (localMaven.exists()) { | |
224 throw new org.gradle.api.GradleException("Unable to clean ${localMaven}. File may be locked by another process.") | |
218 } | 225 } |
219 } | 226 } |
220 } | 227 } |
221 } | 228 } |
222 | 229 |
483 thisProject.repositories.addLast(it) | 490 thisProject.repositories.addLast(it) |
484 } | 491 } |
485 } | 492 } |
486 logger.info "$thisProject configured repositories:\n" + thisProject.repositories.collect {"\t$it.name ${it.hasProperty('url') ? it.url : '' }" }.join('\n') | 493 logger.info "$thisProject configured repositories:\n" + thisProject.repositories.collect {"\t$it.name ${it.hasProperty('url') ? it.url : '' }" }.join('\n') |
487 | 494 |
488 if (thisProject.repositories.find { it.name == 'local' } && thisProject.getTasksByName('uploadArchives', false)) { | 495 // This will not trigger anymore with the upgrade to grade 7 |
489 uploadArchives { | 496 // if (thisProject.repositories.find { it.name == 'local' } && thisProject.getTasksByName('uploadArchives', false)) { |
490 repositories { | 497 // uploadArchives { |
491 add thisProject.repositories.local | 498 // repositories { |
492 } | 499 // add thisProject.repositories.local |
493 } | 500 // } |
494 | 501 // } |
495 thisProject.tasks.create("publishLocal") { | 502 // |
496 description = "Publishes this projects artifacts to developer's local repository" | 503 // thisProject.tasks.create("publishLocal") { |
497 dependsOn = ["uploadArchives"] | 504 // description = "Publishes this projects artifacts to developer's local repository" |
498 } | 505 // dependsOn = ["uploadArchives"] |
499 } | 506 // } |
507 // } | |
500 | 508 |
501 } | 509 } |
502 | 510 |
503 root.subprojects { p -> | 511 root.subprojects { p -> |
504 if (root.useIndy()) { | 512 if (root.useIndy()) { |