Mercurial > public > develkit
diff 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 |
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"] +// } +// } }