Mercurial > public > develkit
changeset 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 | d3b52c8d403c |
children | da59b3f03c2c |
files | init70.gradle |
diffstat | 1 files changed, 20 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/init70.gradle Mon Aug 22 14:37:14 2022 -0400 +++ b/init70.gradle Wed Dec 21 15:21:57 2022 -0500 @@ -216,6 +216,13 @@ if (localDir.exists()) { throw new org.gradle.api.GradleException("Unable to clean ${localDir}. Files may be locked by another process.") } + logger.info "removing local maven repo" + def localMaven = new File(System.getProperty('user.home') + "/.m2/repository/org/ssdt_ohio") + localMaven.deleteDir() + logger.info "verifying removal of local maven repo" + if (localMaven.exists()) { + throw new org.gradle.api.GradleException("Unable to clean ${localMaven}. File may be locked by another process.") + } } } } @@ -485,18 +492,19 @@ } logger.info "$thisProject configured repositories:\n" + thisProject.repositories.collect {"\t$it.name ${it.hasProperty('url') ? it.url : '' }" }.join('\n') - if (thisProject.repositories.find { it.name == 'local' } && thisProject.getTasksByName('uploadArchives', false)) { - uploadArchives { - repositories { - add thisProject.repositories.local - } - } - - thisProject.tasks.create("publishLocal") { - description = "Publishes this projects artifacts to developer's local repository" - dependsOn = ["uploadArchives"] - } - } + // This will not trigger anymore with the upgrade to grade 7 +// if (thisProject.repositories.find { it.name == 'local' } && thisProject.getTasksByName('uploadArchives', false)) { +// uploadArchives { +// repositories { +// add thisProject.repositories.local +// } +// } +// +// thisProject.tasks.create("publishLocal") { +// description = "Publishes this projects artifacts to developer's local repository" +// dependsOn = ["uploadArchives"] +// } +// } }