Mercurial > public > develkit
changeset 297:da59b3f03c2c
merge
author | Marc Davis <marc.davis@mcoecn.org> |
---|---|
date | Wed, 21 Dec 2022 15:23:12 -0500 |
parents | ca537e63716d (diff) 2cfb28ce55d6 (current diff) |
children | 95d4eb5bff0f |
files | |
diffstat | 1 files changed, 20 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/init70.gradle Wed Sep 14 14:23:24 2022 -0400 +++ b/init70.gradle Wed Dec 21 15:23:12 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"] +// } +// } }