# HG changeset patch # User Marc Davis # Date 1671654192 18000 # Node ID da59b3f03c2c9a022484d7fd94c5ae6a205918c4 # Parent ca537e63716dc4085632fae98edeb16b47ac86b5# Parent 2cfb28ce55d6ac052b104db8cee257e0f5cf44e6 merge diff -r 2cfb28ce55d6 -r da59b3f03c2c init70.gradle --- 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"] +// } +// } }