# HG changeset patch # User Marc Davis # Date 1671654117 18000 # Node ID ca537e63716dc4085632fae98edeb16b47ac86b5 # Parent d3b52c8d403cf4f67ba0041c60a0a058f3db57e3 Comment out dead code for now. Add removal of /.m2/repository/org/ssdt_ohio maven report when cleaning local. diff -r d3b52c8d403c -r ca537e63716d init70.gradle --- 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"] +// } +// } }